summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs16
1 files changed, 5 insertions, 11 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs
index 714f41b..c118205 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/ContentPageRenderer.cs
@@ -6,27 +6,26 @@ namespace Xamarin.Forms.Platform.Tizen
/// <summary>
/// Renderer of ContentPage.
/// </summary>
- public class ContentPageRenderer : VisualElementRenderer<ContentPage>
+ public class PageRenderer : VisualElementRenderer<Page>
{
/// <summary>
/// Native control which holds the contents.
/// </summary>
- Native.ContentPage _page;
+ Native.Page _page;
/// <summary>
/// Default constructor.
/// </summary>
- public ContentPageRenderer()
+ public PageRenderer()
{
RegisterPropertyHandler(Page.BackgroundImageProperty, UpdateBackgroundImage);
- RegisterPropertyHandler(Page.TitleProperty, UpdateTitle);
}
- protected override void OnElementChanged(ElementChangedEventArgs<ContentPage> e)
+ protected override void OnElementChanged(ElementChangedEventArgs<Page> e)
{
if (null == _page)
{
- _page = new Native.ContentPage(Forms.Context.MainWindow);
+ _page = new Native.Page(Forms.Context.MainWindow);
_page.LayoutUpdated += OnLayoutUpdated;
SetNativeControl(_page);
}
@@ -73,11 +72,6 @@ namespace Xamarin.Forms.Platform.Tizen
_page.File = ResourcePath.GetPath(Element.BackgroundImage);
}
- void UpdateTitle()
- {
- _page.Title = Element.Title;
- }
-
void OnLayoutUpdated(object sender, Native.LayoutEventArgs e)
{
DoLayout(e);