@@ -41,7 +41,7 @@ public static class TextFieldAssist
41
41
42
42
public static void SetTextBoxViewVerticalAlignment ( DependencyObject element , VerticalAlignment value ) => element . SetValue ( TextBoxViewVerticalAlignmentProperty , value ) ;
43
43
44
- public static VerticalAlignment GetTextBoxViewVerticalAlignment ( DependencyObject element ) => ( VerticalAlignment ) element . GetValue ( TextBoxViewVerticalAlignmentProperty ) ;
44
+ public static VerticalAlignment GetTextBoxViewVerticalAlignment ( DependencyObject element ) => ( VerticalAlignment ) element . GetValue ( TextBoxViewVerticalAlignmentProperty ) ;
45
45
46
46
/// <summary>
47
47
/// Controls the visibility of the underline decoration.
@@ -172,7 +172,7 @@ public static void SetSuffixTextVisibility(DependencyObject element, PrefixSuffi
172
172
=> element . SetValue ( SuffixTextVisibilityProperty , value ) ;
173
173
174
174
public static PrefixSuffixVisibility GetSuffixTextVisibility ( DependencyObject element )
175
- => ( PrefixSuffixVisibility ) element . GetValue ( SuffixTextVisibilityProperty ) ;
175
+ => ( PrefixSuffixVisibility ) element . GetValue ( SuffixTextVisibilityProperty ) ;
176
176
177
177
/// <summary>
178
178
/// SuffixTextHintBehavior dependency property. Controls how a floating hint aligns with respect to the text and suffix.
@@ -184,7 +184,7 @@ public static void SetSuffixTextHintBehavior(DependencyObject element, PrefixSuf
184
184
=> element . SetValue ( SuffixTextHintBehaviorProperty , value ) ;
185
185
186
186
public static PrefixSuffixHintBehavior GetSuffixTextHintBehavior ( DependencyObject element )
187
- => ( PrefixSuffixHintBehavior ) element . GetValue ( SuffixTextHintBehaviorProperty ) ;
187
+ => ( PrefixSuffixHintBehavior ) element . GetValue ( SuffixTextHintBehaviorProperty ) ;
188
188
189
189
/// <summary>
190
190
/// PrefixText dependency property
@@ -208,7 +208,7 @@ public static void SetPrefixTextVisibility(DependencyObject element, PrefixSuffi
208
208
=> element . SetValue ( PrefixTextVisibilityProperty , value ) ;
209
209
210
210
public static PrefixSuffixVisibility GetPrefixTextVisibility ( DependencyObject element )
211
- => ( PrefixSuffixVisibility ) element . GetValue ( PrefixTextVisibilityProperty ) ;
211
+ => ( PrefixSuffixVisibility ) element . GetValue ( PrefixTextVisibilityProperty ) ;
212
212
213
213
/// <summary>
214
214
/// PrefixTextHintBehavior dependency property. Controls how a floating hint aligns with respect to the text and prefix.
@@ -234,6 +234,18 @@ public static void SetHasClearButton(DependencyObject element, bool value)
234
234
public static bool GetHasClearButton ( DependencyObject element )
235
235
=> ( bool ) element . GetValue ( HasClearButtonProperty ) ;
236
236
237
+ /// <summary>
238
+ /// Controls the size of the clear button.
239
+ /// </summary>
240
+ public static readonly DependencyProperty ClearButtonSizeProperty = DependencyProperty . RegisterAttached (
241
+ "ClearButtonSize" , typeof ( double ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( 16.0d ) ) ;
242
+
243
+ public static void SetClearButtonSize ( DependencyObject element , double value )
244
+ => element . SetValue ( ClearButtonSizeProperty , value ) ;
245
+
246
+ public static double GetClearButtonSize ( DependencyObject element )
247
+ => ( double ) element . GetValue ( ClearButtonSizeProperty ) ;
248
+
237
249
/// <summary>
238
250
/// Controls visibility of the leading icon
239
251
/// </summary>
@@ -316,7 +328,7 @@ public static void SetIconVerticalAlignment(DependencyObject element, VerticalAl
316
328
=> element . SetValue ( IconVerticalAlignmentProperty , value ) ;
317
329
318
330
public static VerticalAlignment GetIconVerticalAlignment ( DependencyObject element )
319
- => ( VerticalAlignment ) element . GetValue ( IconVerticalAlignmentProperty ) ;
331
+ => ( VerticalAlignment ) element . GetValue ( IconVerticalAlignmentProperty ) ;
320
332
321
333
public static Style GetCharacterCounterStyle ( DependencyObject obj ) => ( Style ) obj . GetValue ( CharacterCounterStyleProperty ) ;
322
334
@@ -373,14 +385,14 @@ public static Thickness GetOutlinedBorderActiveThickness(DependencyObject elemen
373
385
public static void SetTextBoxLineCount ( DependencyObject element , int value )
374
386
=> element . SetValue ( TextBoxLineCountProperty , value ) ;
375
387
public static int GetTextBoxLineCount ( DependencyObject element )
376
- => ( int ) element . GetValue ( TextBoxLineCountProperty ) ;
388
+ => ( int ) element . GetValue ( TextBoxLineCountProperty ) ;
377
389
378
390
public static readonly DependencyProperty TextBoxIsMultiLineProperty = DependencyProperty . RegisterAttached (
379
391
"TextBoxIsMultiLine" , typeof ( bool ) , typeof ( TextFieldAssist ) , new PropertyMetadata ( false ) ) ;
380
392
public static void SetTextBoxIsMultiLine ( DependencyObject element , bool value )
381
393
=> element . SetValue ( TextBoxIsMultiLineProperty , value ) ;
382
394
public static bool GetTextBoxIsMultiLine ( DependencyObject element )
383
- => ( bool ) element . GetValue ( TextBoxIsMultiLineProperty ) ;
395
+ => ( bool ) element . GetValue ( TextBoxIsMultiLineProperty ) ;
384
396
385
397
#region Methods
386
398
0 commit comments