diff options
author | Kangho Hur <kangho.hur@samsung.com> | 2017-07-10 06:42:16 +0000 |
---|---|---|
committer | Kangho Hur <kangho.hur@samsung.com> | 2017-10-23 13:34:38 +0900 |
commit | f2241f6713c416f509d1e48e8ecdf77517675ec7 (patch) | |
tree | 431bf2692e75734df434efbc98628deeffe41411 /Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs | |
parent | a605093b48e4199f2f6aea6d8884c2315256d049 (diff) | |
download | xamarin-forms-f2241f6713c416f509d1e48e8ecdf77517675ec7.tar.gz xamarin-forms-f2241f6713c416f509d1e48e8ecdf77517675ec7.tar.bz2 xamarin-forms-f2241f6713c416f509d1e48e8ecdf77517675ec7.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/EntryRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs b/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs index b240b8dc..842aae87 100644 --- a/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs +++ b/Xamarin.Forms.Platform.Tizen/Renderers/EntryRenderer.cs @@ -6,21 +6,21 @@ namespace Xamarin.Forms.Platform.Tizen { public class EntryRenderer : ViewRenderer<Entry, Native.Entry>, IDisposable { - static EntryRenderer() - { - RegisterPropertyHandler(Entry.IsPasswordProperty, (r) => (r as EntryRenderer).UpdateIsPassword()); - RegisterPropertyHandler(Entry.TextProperty, (r) => (r as EntryRenderer).UpdateText()); - RegisterPropertyHandler(Entry.TextColorProperty, (r) => (r as EntryRenderer).UpdateTextColor()); - RegisterPropertyHandler(Entry.FontSizeProperty, (r) => (r as EntryRenderer).UpdateFontSize()); - RegisterPropertyHandler(Entry.FontFamilyProperty, (r) => (r as EntryRenderer).UpdateFontFamily()); - RegisterPropertyHandler(Entry.FontAttributesProperty, (r) => (r as EntryRenderer).UpdateFontAttributes()); - RegisterPropertyHandler(Entry.HorizontalTextAlignmentProperty, (r) => (r as EntryRenderer).UpdateHorizontalTextAlignment()); - RegisterPropertyHandler(Entry.KeyboardProperty, (r, i) => (r as EntryRenderer).UpdateKeyboard(i)); - RegisterPropertyHandler(Entry.PlaceholderProperty, (r) => (r as EntryRenderer).UpdatePlaceholder()); - RegisterPropertyHandler(Entry.PlaceholderColorProperty, (r) => (r as EntryRenderer).UpdatePlaceholderColor()); + public EntryRenderer() + { + RegisterPropertyHandler(Entry.IsPasswordProperty, UpdateIsPassword); + RegisterPropertyHandler(Entry.TextProperty, UpdateText); + RegisterPropertyHandler(Entry.TextColorProperty, UpdateTextColor); + RegisterPropertyHandler(Entry.FontSizeProperty, UpdateFontSize); + RegisterPropertyHandler(Entry.FontFamilyProperty, UpdateFontFamily); + RegisterPropertyHandler(Entry.FontAttributesProperty, UpdateFontAttributes); + RegisterPropertyHandler(Entry.HorizontalTextAlignmentProperty, UpdateHorizontalTextAlignment); + RegisterPropertyHandler(Entry.KeyboardProperty, UpdateKeyboard); + RegisterPropertyHandler(Entry.PlaceholderProperty, UpdatePlaceholder); + RegisterPropertyHandler(Entry.PlaceholderColorProperty, UpdatePlaceholderColor); if (TizenPlatformServices.AppDomain.IsTizenSpecificAvailable) { - RegisterPropertyHandler("FontWeight", (r) => (r as EntryRenderer).UpdateFontWeight()); + RegisterPropertyHandler("FontWeight", UpdateFontWeight); } } @@ -131,4 +131,4 @@ namespace Xamarin.Forms.Platform.Tizen Control.FontWeight = Specific.GetFontWeight(Element); } } -} +}
\ No newline at end of file |