diff options
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen')
3 files changed, 2 insertions, 41 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Native/CircleListView.cs b/Xamarin.Forms.Platform.Tizen/Native/CircleListView.cs deleted file mode 100755 index 231896a3..00000000 --- a/Xamarin.Forms.Platform.Tizen/Native/CircleListView.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using ElmSharp; -using ElmSharp.Wearable; - -namespace Xamarin.Forms.Platform.Tizen.Native -{ - public class CircleListView : ListView - { - CircleGenList _circleGenList; - - public CircleListView(EvasObject parent) : base(parent) { } - - protected override IntPtr CreateHandle(EvasObject parent) - { - _circleGenList = new CircleGenList(parent); - RealHandle = _circleGenList.RealHandle; - return _circleGenList; - } - } -}
\ No newline at end of file diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs index e2611ead..e72715a9 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/ListViewRenderer.cs @@ -2,8 +2,6 @@ using System; using System.Collections.Specialized; using Xamarin.Forms.Internals; using ElmSharp; -using EProgressBar = ElmSharp.ProgressBar; -using ERect = ElmSharp.Rect; namespace Xamarin.Forms.Platform.Tizen { @@ -55,15 +53,7 @@ namespace Xamarin.Forms.Platform.Tizen { if (Control == null) { - ///TODO: If 'Watch' target idiom is added, it should be replaced something like Device.Idiom == TargetIdiom.Watch. - if (Forms.GetProfile() == "wearable") - { - SetNativeControl(new Native.CircleListView(Forms.Context.MainWindow)); - } - else - { - SetNativeControl(new Native.ListView(Forms.Context.MainWindow)); - } + SetNativeControl(new Native.ListView(Forms.Context.MainWindow)); Control.ItemSelected += OnListViewItemSelected; Control.ItemUnselected += OnListViewItemUnselected; diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs index 19244f95..e9901334 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/ScrollViewRenderer.cs @@ -1,7 +1,6 @@ using System; using System.ComponentModel; using ElmSharp; -using ElmSharp.Wearable; namespace Xamarin.Forms.Platform.Tizen { @@ -28,15 +27,7 @@ namespace Xamarin.Forms.Platform.Tizen { if (Control == null) { - ///TODO: If 'Watch' target idiom is added, it should be replaced something like Device.Idiom == TargetIdiom.Watch. - if (Forms.GetProfile() == "wearable") - { - SetNativeControl(new CircleScroller(Forms.Context.MainWindow)); - } - else - { - SetNativeControl(new Scroller(Forms.Context.MainWindow)); - } + SetNativeControl(new Scroller(Forms.Context.MainWindow)); Control.Scrolled += OnScrolled; } |