diff options
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 |