@@ -68,35 +68,99 @@ public static Visibility GetDecorationVisibility(DependencyObject element)
68
68
}
69
69
70
70
/// <summary>
71
- /// Controls the visbility of the text field box .
71
+ /// Controls the visbility of the filled text field.
72
72
/// </summary>
73
- public static readonly DependencyProperty HasTextFieldBoxProperty = DependencyProperty . RegisterAttached (
74
- "HasTextFieldBox " , typeof ( bool ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( false ) ) ;
73
+ public static readonly DependencyProperty HasFilledTextFieldProperty = DependencyProperty . RegisterAttached (
74
+ "HasFilledTextField " , typeof ( bool ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( false ) ) ;
75
75
76
- public static void SetHasTextFieldBox ( DependencyObject element , bool value )
76
+ public static void SetHasFilledTextField ( DependencyObject element , bool value )
77
77
{
78
- element . SetValue ( HasTextFieldBoxProperty , value ) ;
78
+ element . SetValue ( HasFilledTextFieldProperty , value ) ;
79
79
}
80
80
81
- public static bool GetHasTextFieldBox ( DependencyObject element )
81
+ public static bool GetHasFilledTextField ( DependencyObject element )
82
82
{
83
- return ( bool ) element . GetValue ( HasTextFieldBoxProperty ) ;
83
+ return ( bool ) element . GetValue ( HasFilledTextFieldProperty ) ;
84
84
}
85
85
86
86
/// <summary>
87
87
/// Controls the visibility of the text field area box.
88
88
/// </summary>
89
- public static readonly DependencyProperty HasTextAreaBoxProperty = DependencyProperty . RegisterAttached (
90
- "HasTextAreaBox " , typeof ( bool ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( false ) ) ;
89
+ public static readonly DependencyProperty HasOutlinedTextFieldProperty = DependencyProperty . RegisterAttached (
90
+ "HasOutlinedTextField " , typeof ( bool ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( false ) ) ;
91
91
92
- public static void SetHasTextAreaBox ( DependencyObject element , bool value )
92
+ public static void SetHasOutlinedTextField ( DependencyObject element , bool value )
93
93
{
94
- element . SetValue ( HasTextAreaBoxProperty , value ) ;
94
+ element . SetValue ( HasOutlinedTextFieldProperty , value ) ;
95
95
}
96
96
97
- public static bool GetHasTextAreaBox ( DependencyObject element )
97
+ public static bool GetHasOutlinedTextField ( DependencyObject element )
98
98
{
99
- return ( bool ) element . GetValue ( HasTextAreaBoxProperty ) ;
99
+ return ( bool ) element . GetValue ( HasOutlinedTextFieldProperty ) ;
100
+ }
101
+
102
+ /// <summary>
103
+ /// Controls the corner radius of the surrounding box.
104
+ /// </summary>
105
+ public static readonly DependencyProperty TextFieldCornerRadiusProperty = DependencyProperty . RegisterAttached (
106
+ "TextFieldCornerRadius" , typeof ( CornerRadius ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( new CornerRadius ( 0.0 ) ) ) ;
107
+
108
+ public static void SetTextFieldCornerRadius ( DependencyObject element , CornerRadius value )
109
+ {
110
+ element . SetValue ( TextFieldCornerRadiusProperty , value ) ;
111
+ }
112
+
113
+ public static CornerRadius GetTextFieldCornerRadius ( DependencyObject element )
114
+ {
115
+ return ( CornerRadius ) element . GetValue ( TextFieldCornerRadiusProperty ) ;
116
+ }
117
+
118
+ /// <summary>
119
+ /// Controls the corner radius of the bottom line of the surroundig box.
120
+ /// </summary>
121
+ public static readonly DependencyProperty UnderlineCornerRadiusProperty = DependencyProperty . RegisterAttached (
122
+ "UnderlineCornerRadius" , typeof ( CornerRadius ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( new CornerRadius ( 0.0 ) ) ) ;
123
+
124
+ public static void SetUnderlineCornerRadius ( DependencyObject element , CornerRadius value )
125
+ {
126
+ element . SetValue ( UnderlineCornerRadiusProperty , value ) ;
127
+ }
128
+
129
+ public static CornerRadius GetUnderlineCornerRadius ( DependencyObject element )
130
+ {
131
+ return ( CornerRadius ) element . GetValue ( UnderlineCornerRadiusProperty ) ;
132
+ }
133
+
134
+ /// <summary>
135
+ /// Controls the highlighting style of a text box.
136
+ /// </summary>
137
+ public static readonly DependencyProperty NewSpecHighlightingEnabledProperty = DependencyProperty . RegisterAttached (
138
+ "NewSpecHighlightingEnabled" , typeof ( bool ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( false ) ) ;
139
+
140
+ public static void SetNewSpecHighlightingEnabled ( DependencyObject element , bool value )
141
+ {
142
+ element . SetValue ( NewSpecHighlightingEnabledProperty , value ) ;
143
+ }
144
+
145
+ public static bool GetNewSpecHighlightingEnabled ( DependencyObject element )
146
+ {
147
+ return ( bool ) element . GetValue ( NewSpecHighlightingEnabledProperty ) ;
148
+ }
149
+
150
+ /// <summary>
151
+ /// Enables a ripple effect on focusing the text box.
152
+ /// </summary>
153
+ public static readonly DependencyProperty RippleOnFocusEnabledProperty = DependencyProperty . RegisterAttached (
154
+ "RippleOnFocusEnabled" , typeof ( bool ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( false ) ) ;
155
+
156
+ public static void SetRippleOnFocusEnabled ( DependencyObject element , bool value )
157
+ {
158
+ element . SetValue ( RippleOnFocusEnabledProperty , value ) ;
159
+ }
160
+
161
+ public static bool GetRippleOnFocusEnabled ( DependencyObject element )
162
+ {
163
+ return ( bool ) element . GetValue ( RippleOnFocusEnabledProperty ) ;
100
164
}
101
165
102
166
/// <summary>
0 commit comments