From: Kangho Hur Date: Wed, 21 Jun 2017 23:33:04 +0000 (+0900) Subject: Remove unnecessary BindableProperty of Platform X-Git-Tag: accepted/tizen/4.0/unified/20170816.011313~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ef7be8a3ef7e24c7deeabf609df33d6dc85c257f;p=platform%2Fupstream%2Fxamarin-forms.git Remove unnecessary BindableProperty of Platform - There is no need to provide PageContext Change-Id: I807488b53154f0baf5534a3f221b06bb7e677c9e --- 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 INavigation.ModalStack => _navModel.Modals.ToList(); IReadOnlyList INavigation.NavigationStack => new List(); - 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;