Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EntryDataElement.cs
1using System.Windows.Input;
2
4{
5 internal static class EntryDataElement
6 {
8 public static readonly BindableProperty EntryDataProperty =
9 BindableProperty.Create(nameof(IEntryDataElement.EntryData), typeof(string), typeof(IEntryDataElement), default(string),
10 defaultBindingMode: BindingMode.TwoWay, propertyChanged: OnEntryDataPropertyChanged);
11
12 static void OnEntryDataPropertyChanged(BindableObject Bindable, object OldValue, object NewValue)
13 {
14 ((IEntryDataElement)Bindable).OnEntryDataPropertyChanged((string)OldValue, (string)NewValue);
15 }
16
18 public static readonly BindableProperty EntryHintProperty =
19 BindableProperty.Create(nameof(IEntryDataElement.EntryHint), typeof(string), typeof(IEntryDataElement), default(string),
20 propertyChanged: OnEntryHintPropertyChanged);
21
22 static void OnEntryHintPropertyChanged(BindableObject Bindable, object OldValue, object NewValue)
23 {
24 ((IEntryDataElement)Bindable).OnEntryHintPropertyChanged((string)OldValue, (string)NewValue);
25 }
26
28 public static readonly BindableProperty EntryStyleProperty =
29 BindableProperty.Create(nameof(IEntryDataElement.EntryStyle), typeof(Style), typeof(IEntryDataElement), default(Style),
30 propertyChanged: OnEntryStylePropertyChanged);
31
32 static void OnEntryStylePropertyChanged(BindableObject Bindable, object OldValue, object NewValue)
33 {
34 ((IEntryDataElement)Bindable).OnEntryStylePropertyChanged((Style)OldValue, (Style)NewValue);
35 }
36
38 public static readonly BindableProperty ReturnCommandProperty =
39 BindableProperty.Create(nameof(IEntryDataElement.ReturnCommand), typeof(ICommand), typeof(IEntryDataElement), default(ICommand),
40 propertyChanged: OnReturnCommandPropertyChanged);
41
42 static void OnReturnCommandPropertyChanged(BindableObject Bindable, object OldValue, object NewValue)
43 {
44 ((IEntryDataElement)Bindable).OnReturnCommandPropertyChanged((ICommand)OldValue, (ICommand)NewValue);
45 }
46
48 public static readonly BindableProperty IsPasswordProperty =
49 BindableProperty.Create(nameof(IEntryDataElement.IsPassword), typeof(bool), typeof(IEntryDataElement), default(bool),
50 propertyChanged: OnIsPasswordPropertyChanged);
51
52 static void OnIsPasswordPropertyChanged(BindableObject Bindable, object OldValue, object NewValue)
53 {
54 ((IEntryDataElement)Bindable).OnIsPasswordPropertyChanged((bool)OldValue, (bool)NewValue);
55 }
56 }
57}