summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-06-21 23:33:04 (GMT)
committerKangho Hur <kangho.hur@samsung.com>2017-10-23 04:34:37 (GMT)
commit41f1461b6df2bdca937daf34803bdc9317c8ddfc (patch)
tree490b9c88f6040c7abeec4e6b688b00ae326d3382
parent8e7792802eb1ab44f64a65af1b2868b80a3ceb09 (diff)
downloadxamarin-forms-41f1461b6df2bdca937daf34803bdc9317c8ddfc.zip
xamarin-forms-41f1461b6df2bdca937daf34803bdc9317c8ddfc.tar.gz
xamarin-forms-41f1461b6df2bdca937daf34803bdc9317c8ddfc.tar.bz2
Remove unnecessary BindableProperty of Platform
- There is no need to provide PageContext Change-Id: I807488b53154f0baf5534a3f221b06bb7e677c9e
-rw-r--r--Xamarin.Forms.Platform.Tizen/Platform.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Platform.cs b/Xamarin.Forms.Platform.Tizen/Platform.cs
index 8abea63..c48a66e 100644
--- a/Xamarin.Forms.Platform.Tizen/Platform.cs
+++ b/Xamarin.Forms.Platform.Tizen/Platform.cs
@@ -16,7 +16,6 @@ namespace Xamarin.Forms.Platform.Tizen
if (ve != null)
ve.IsPlatformEnabled = newvalue != null;
});
- internal static readonly BindableProperty PageContextProperty = BindableProperty.CreateAttached("PageContext", typeof(FormsApplication), typeof(Platform), null);
Naviframe _naviframe;
NavigationModel _navModel = new NavigationModel();
@@ -70,16 +69,6 @@ namespace Xamarin.Forms.Platform.Tizen
IReadOnlyList<Page> INavigation.ModalStack => _navModel.Modals.ToList();
IReadOnlyList<Page> INavigation.NavigationStack => new List<Page>();
- public static FormsApplication GetPageContext(BindableObject bindable)
- {
- return (FormsApplication)bindable.GetValue(Platform.PageContextProperty);
- }
-
- public static void SetPageContext(BindableObject bindable, FormsApplication context)
- {
- bindable.SetValue(Platform.PageContextProperty, context);
- }
-
public static IVisualElementRenderer GetRenderer(BindableObject bindable)
{
return (IVisualElementRenderer)bindable.GetValue(Platform.RendererProperty);
@@ -132,7 +121,6 @@ namespace Xamarin.Forms.Platform.Tizen
Page = newRoot;
Page.Platform = this;
- Platform.SetPageContext(Page, Forms.Context);
IVisualElementRenderer pageRenderer = AttachRenderer(Page);
var naviItem = _naviframe.Push(pageRenderer.NativeView);
naviItem.TitleBarVisible = false;