1using System.Windows.Input;
5 internal static class EntryDataElement
8 public static readonly BindableProperty EntryDataProperty =
9 BindableProperty.Create(nameof(IEntryDataElement.EntryData), typeof(
string), typeof(IEntryDataElement),
default(
string),
10 defaultBindingMode: BindingMode.TwoWay, propertyChanged: OnEntryDataPropertyChanged);
12 static void OnEntryDataPropertyChanged(BindableObject Bindable,
object OldValue,
object NewValue)
14 ((IEntryDataElement)Bindable).OnEntryDataPropertyChanged((
string)OldValue, (string)NewValue);
18 public static readonly BindableProperty EntryHintProperty =
19 BindableProperty.Create(nameof(IEntryDataElement.EntryHint), typeof(
string), typeof(IEntryDataElement),
default(
string),
20 propertyChanged: OnEntryHintPropertyChanged);
22 static void OnEntryHintPropertyChanged(BindableObject Bindable,
object OldValue,
object NewValue)
24 ((IEntryDataElement)Bindable).OnEntryHintPropertyChanged((
string)OldValue, (string)NewValue);
28 public static readonly BindableProperty EntryStyleProperty =
29 BindableProperty.Create(nameof(IEntryDataElement.EntryStyle), typeof(Style), typeof(IEntryDataElement),
default(Style),
30 propertyChanged: OnEntryStylePropertyChanged);
32 static void OnEntryStylePropertyChanged(BindableObject Bindable,
object OldValue,
object NewValue)
34 ((IEntryDataElement)Bindable).OnEntryStylePropertyChanged((Style)OldValue, (Style)NewValue);
38 public static readonly BindableProperty ReturnCommandProperty =
39 BindableProperty.Create(nameof(IEntryDataElement.ReturnCommand), typeof(ICommand), typeof(IEntryDataElement),
default(ICommand),
40 propertyChanged: OnReturnCommandPropertyChanged);
42 static void OnReturnCommandPropertyChanged(BindableObject Bindable,
object OldValue,
object NewValue)
44 ((IEntryDataElement)Bindable).OnReturnCommandPropertyChanged((ICommand)OldValue, (ICommand)NewValue);
48 public static readonly BindableProperty IsPasswordProperty =
49 BindableProperty.Create(nameof(IEntryDataElement.IsPassword), typeof(
bool), typeof(IEntryDataElement),
default(
bool),
50 propertyChanged: OnIsPasswordPropertyChanged);
52 static void OnIsPasswordPropertyChanged(BindableObject Bindable,
object OldValue,
object NewValue)
54 ((IEntryDataElement)Bindable).OnIsPasswordPropertyChanged((
bool)OldValue, (bool)NewValue);