summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Xamarin.Forms.Platform.Tizen/Platform.cs6
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs8
2 files changed, 9 insertions, 5 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Platform.cs b/Xamarin.Forms.Platform.Tizen/Platform.cs
index 5b0fd349..8111a832 100644
--- a/Xamarin.Forms.Platform.Tizen/Platform.cs
+++ b/Xamarin.Forms.Platform.Tizen/Platform.cs
@@ -13,8 +13,8 @@ namespace Xamarin.Forms.Platform.Tizen
propertyChanged: (bindable, oldvalue, newvalue) =>
{
var ve = bindable as VisualElement;
- if (ve != null)
- ve.IsPlatformEnabled = newvalue != null;
+ if (ve != null && newvalue == null)
+ ve.IsPlatformEnabled = false;
});
Naviframe _naviframe;
@@ -339,4 +339,4 @@ namespace Xamarin.Forms.Platform.Tizen
tcs?.SetResult(true);
}
}
-} \ No newline at end of file
+}
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
index d5de949b..88ae9ba6 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/VisualElementRenderer.cs
@@ -188,6 +188,10 @@ namespace Xamarin.Forms.Platform.Tizen
// send notification
OnElementChanged(new ElementChangedEventArgs<TElement>(oldElement, newElement));
+
+ // store renderer for the new element
+ Platform.SetRenderer(newElement, this);
+
// add children
var logicalChildren = (newElement as IElementController).LogicalChildren;
foreach (Element child in logicalChildren)
@@ -195,8 +199,8 @@ namespace Xamarin.Forms.Platform.Tizen
AddChild(child);
}
- // store renderer for the new element
- Platform.SetRenderer(newElement, this);
+ newElement.IsPlatformEnabled = true;
+
OnElementReady();
}