@@ -68,35 +68,99 @@ public static Visibility GetDecorationVisibility(DependencyObject element)
6868 }
6969
7070 /// <summary>
71- /// Controls the visbility of the text field box .
71+ /// Controls the visbility of the filled text field.
7272 /// </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 ) ) ;
7575
76- public static void SetHasTextFieldBox ( DependencyObject element , bool value )
76+ public static void SetHasFilledTextField ( DependencyObject element , bool value )
7777 {
78- element . SetValue ( HasTextFieldBoxProperty , value ) ;
78+ element . SetValue ( HasFilledTextFieldProperty , value ) ;
7979 }
8080
81- public static bool GetHasTextFieldBox ( DependencyObject element )
81+ public static bool GetHasFilledTextField ( DependencyObject element )
8282 {
83- return ( bool ) element . GetValue ( HasTextFieldBoxProperty ) ;
83+ return ( bool ) element . GetValue ( HasFilledTextFieldProperty ) ;
8484 }
8585
8686 /// <summary>
8787 /// Controls the visibility of the text field area box.
8888 /// </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 ) ) ;
9191
92- public static void SetHasTextAreaBox ( DependencyObject element , bool value )
92+ public static void SetHasOutlinedTextField ( DependencyObject element , bool value )
9393 {
94- element . SetValue ( HasTextAreaBoxProperty , value ) ;
94+ element . SetValue ( HasOutlinedTextFieldProperty , value ) ;
9595 }
9696
97- public static bool GetHasTextAreaBox ( DependencyObject element )
97+ public static bool GetHasOutlinedTextField ( DependencyObject element )
9898 {
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 ) ;
100164 }
101165
102166 /// <summary>
0 commit comments