Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
EntryProperties.cs
2{
6 public class EntryProperties
7 {
11 public static readonly BindableProperty BorderColorProperty
12 = BindableProperty.CreateAttached("BorderColor", typeof(Color), typeof(EntryProperties), default);
13
17 public static Color GetBorderColor(BindableObject Bindable)
18 {
19 return (Color)Bindable.GetValue(BorderColorProperty);
20 }
21
25 public static void SetBorderColor(BindableObject Bindable, Color Value)
26 {
27 Bindable.SetValue(BorderColorProperty, Value);
28 }
29
33 public static readonly BindableProperty BorderWidthProperty
34 = BindableProperty.CreateAttached("BorderWidth", typeof(double), typeof(EntryProperties), (double)1);
35
39 public static double GetBorderWidth(BindableObject Bindable)
40 {
41 return (double)Bindable.GetValue(BorderWidthProperty);
42 }
43
47 public static void SetBorderWidth(BindableObject Bindable, double Value)
48 {
49 Bindable.SetValue(BorderWidthProperty, Value);
50 }
51
55 public static readonly BindableProperty CornerRadiusProperty
56 = BindableProperty.CreateAttached("CornerRadius", typeof(double), typeof(EntryProperties), (double)5);
57
61 public static double GetCornerRadius(BindableObject Bindable)
62 {
63 return (double)Bindable.GetValue(CornerRadiusProperty);
64 }
65
69 public static void SetCornerRadius(BindableObject Bindable, double Value)
70 {
71 Bindable.SetValue(CornerRadiusProperty, Value);
72 }
73
77 public static readonly BindableProperty PaddingHorizontalProperty
78 = BindableProperty.CreateAttached("PaddingHorizontal", typeof(double), typeof(EntryProperties), (double)5);
79
83 public static double GetPaddingHorizontal(BindableObject Bindable)
84 {
85 return (double)Bindable.GetValue(PaddingHorizontalProperty);
86 }
87
91 public static void SetPaddingHorizontal(BindableObject Bindable, double Value)
92 {
93 Bindable.SetValue(PaddingHorizontalProperty, Value);
94 }
95 }
96}
EntryProperties is a class which defines attached bindable properties used by our custom renderers fo...
static double GetPaddingHorizontal(BindableObject Bindable)
Gets the width of the padding of an Entry.
static Color GetBorderColor(BindableObject Bindable)
Gets the color of the border around an Entry.
static void SetBorderWidth(BindableObject Bindable, double Value)
Sets the width of the border around an Entry.
static readonly BindableProperty BorderColorProperty
Implements the attached property that defines the color of the border around an Entry.
static readonly BindableProperty PaddingHorizontalProperty
Implements the attached property that defines the width of the left/right side padding of an Entry.
static void SetBorderColor(BindableObject Bindable, Color Value)
Sets the color of the border around an Entry.
static void SetPaddingHorizontal(BindableObject Bindable, double Value)
Sets the width of the padding of an Entry.
static void SetCornerRadius(BindableObject Bindable, double Value)
Sets the corner radius of an Entry.
static double GetCornerRadius(BindableObject Bindable)
Gets the corner radius of an Entry.
static double GetBorderWidth(BindableObject Bindable)
Gets the width of the border around an Entry.
static readonly BindableProperty BorderWidthProperty
Implements the attached property that defines the width of the border around an Entry.
static readonly BindableProperty CornerRadiusProperty
Implements the attached property that defines the corner radius of an Entry.