summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/MasterDetailPageRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/MasterDetailPageRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/MasterDetailPageRenderer.cs15
1 files changed, 9 insertions, 6 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/MasterDetailPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/MasterDetailPageRenderer.cs
index 2acfb3a..0608039 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/MasterDetailPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/MasterDetailPageRenderer.cs
@@ -6,16 +6,19 @@ namespace Xamarin.Forms.Platform.Tizen
{
Native.MasterDetailPage _mdpage;
- static MasterDetailPageRenderer()
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public MasterDetailPageRenderer()
{
- RegisterPropertyHandler("Master", (r) => (r as MasterDetailPageRenderer).UpdateMasterPage());
- RegisterPropertyHandler("Detail", (r) => (r as MasterDetailPageRenderer).UpdateDetailPage());
+ RegisterPropertyHandler("Master", UpdateMasterPage);
+ RegisterPropertyHandler("Detail", UpdateDetailPage);
RegisterPropertyHandler(MasterDetailPage.IsPresentedProperty,
- (r) => (r as MasterDetailPageRenderer).UpdateIsPresented());
+ UpdateIsPresented);
RegisterPropertyHandler(MasterDetailPage.MasterBehaviorProperty,
- (r) => (r as MasterDetailPageRenderer).UpdateMasterBehavior());
+ UpdateMasterBehavior);
RegisterPropertyHandler(MasterDetailPage.IsGestureEnabledProperty,
- (r) => (r as MasterDetailPageRenderer).UpdateIsGestureEnabled());
+ UpdateIsGestureEnabled);
}
protected override void OnElementChanged(ElementChangedEventArgs<MasterDetailPage> e)