summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
diff options
context:
space:
mode:
authorKangho Hur <kangho.hur@samsung.com>2017-07-10 06:42:16 +0000
committerKangho Hur <kangho.hur@samsung.com>2017-07-10 06:42:16 +0000
commit26bf6937ff999599fcf7dbdeb08d1c9ac7605676 (patch)
treedc9e87a886dca078ab7c20aaea74113598c9c872 /Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
parent509e6f117c9966e5503deb8ff1c5135b41eb2a3e (diff)
downloadxamarin-forms-26bf6937ff999599fcf7dbdeb08d1c9ac7605676.tar.gz
xamarin-forms-26bf6937ff999599fcf7dbdeb08d1c9ac7605676.tar.bz2
xamarin-forms-26bf6937ff999599fcf7dbdeb08d1c9ac7605676.zip
Revert "Move registration of property handles to static constructors"
This reverts commit 509e6f117c9966e5503deb8ff1c5135b41eb2a3e. Change-Id: Icb16fdc0b1006405a92e4e5ef77f20749c2ce3e5
Diffstat (limited to 'Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs')
-rw-r--r--Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
index 9a9aa0f7..3af1b341 100644
--- a/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
+++ b/Xamarin.Forms.Platform.Tizen/Renderers/TabbedPageRenderer.cs
@@ -18,11 +18,11 @@ namespace Xamarin.Forms.Platform.Tizen
Toolbar _toolbar;
Dictionary<EToolbarItem, Page> _itemToItemPage = new Dictionary<EToolbarItem, Page>();
- static TabbedPageRenderer()
+ public TabbedPageRenderer()
{
- RegisterPropertyHandler(TabbedPage.TitleProperty, (r) => (r as TabbedPageRenderer).UpdateTitle());
- RegisterPropertyHandler("CurrentPage", (r) => (r as TabbedPageRenderer).CurrentPageChanged());
- RegisterPropertyHandler(TabbedPage.BarBackgroundColorProperty, (r) => (r as TabbedPageRenderer).UpdateBarBackgroundColor());
+ RegisterPropertyHandler(TabbedPage.TitleProperty, UpdateTitle);
+ RegisterPropertyHandler("CurrentPage", CurrentPageChanged);
+ RegisterPropertyHandler(TabbedPage.BarBackgroundColorProperty, UpdateBarBackgroundColor);
}
protected override void OnElementChanged(ElementChangedEventArgs<TabbedPage> e)