diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-11-03 13:31:09 +0900 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-11-03 13:31:09 +0900 |
commit | a56cc3e16a9dd3ef68f2257cd04c0327595a82c0 (patch) | |
tree | fed076d48330df8b1cc53c2b89b4136f72b48889 | |
parent | 8a21cd47f472096b987a18fa0cc21cd1199f80d1 (diff) | |
download | xamarin-forms-a56cc3e16a9dd3ef68f2257cd04c0327595a82c0.tar.gz xamarin-forms-a56cc3e16a9dd3ef68f2257cd04c0327595a82c0.tar.bz2 xamarin-forms-a56cc3e16a9dd3ef68f2257cd04c0327595a82c0.zip |
Remove ElmSharp.Wearable dependencies on rendererstizen
Change-Id: I1a89703770fccad795b433144e89a9c9a5d867a0
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; } |