File tree Expand file tree Collapse file tree 6 files changed +40
-0
lines changed
src/Microsoft.DotNet.Wpf/src/Themes/PresentationFramework.Fluent Expand file tree Collapse file tree 6 files changed +40
-0
lines changed Original file line number Diff line number Diff line change 4444 <Thickness x : Key =" DatePickerHostPadding" >0,1,0,2</Thickness >
4545 <Thickness x : Key =" DatePickerHostMonthPadding" >9,0,0,1</Thickness >
4646 <Thickness x : Key =" ComboBoxEditableTextPadding" >10,0,30,0</Thickness >
47+ <Thickness x : Key =" TextControlErrorBorderPadding" >1</Thickness >
4748
4849 <system : Double x : Key =" ComboBoxMinHeight" >24</system : Double >
4950 <!-- <Thickness x:Key="ComboBoxPadding">12,1,0,3</Thickness> -->
Original file line number Diff line number Diff line change 233233 </ControlTemplate .Triggers>
234234 </ControlTemplate >
235235
236+ <ControlTemplate x : Key =" DefaultTextBoxInvalidationStyle" >
237+ <Border
238+ BorderBrush =" {DynamicResource SystemFillColorCriticalBrush}"
239+ BorderThickness =" {DynamicResource TextControlBorderThemeThickness}"
240+ CornerRadius =" {DynamicResource ControlCornerRadius}"
241+ Padding =" {StaticResource TextControlErrorBorderPadding}" >
242+ <AdornedElementPlaceholder />
243+ </Border >
244+ </ControlTemplate >
245+
236246 <Style x : Key =" DefaultTextBoxStyle" TargetType =" {x:Type TextBox}" >
237247 <Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
248+ <Setter Property =" Validation.ErrorTemplate" Value =" {DynamicResource DefaultTextBoxInvalidationStyle}" />
238249 <Setter Property =" ContextMenu" Value =" {DynamicResource DefaultControlContextMenu}" />
239250 <Setter Property =" Foreground" Value =" {DynamicResource TextControlForeground}" />
240251 <Setter Property =" CaretBrush" Value =" {DynamicResource TextControlForeground}" />
Original file line number Diff line number Diff line change 7878 <Thickness x : Key =" DatePickerHostPadding" >0,1,0,2</Thickness >
7979 <Thickness x : Key =" DatePickerHostMonthPadding" >9,0,0,1</Thickness >
8080 <Thickness x : Key =" ComboBoxEditableTextPadding" >10,0,30,0</Thickness >
81+ <Thickness x : Key =" TextControlErrorBorderPadding" >1</Thickness >
8182 <system : Double x : Key =" ComboBoxMinHeight" >24</system : Double >
8283 <!-- <Thickness x:Key="ComboBoxPadding">12,1,0,3</Thickness> -->
8384 <system : Double x : Key =" NavigationViewItemOnLeftMinHeight" >32</system : Double >
49594960 </Trigger >
49604961 </ControlTemplate .Triggers>
49614962 </ControlTemplate >
4963+ <ControlTemplate x : Key =" DefaultTextBoxInvalidationStyle" >
4964+ <Border BorderBrush =" {DynamicResource SystemFillColorCriticalBrush}" BorderThickness =" {DynamicResource TextControlBorderThemeThickness}" CornerRadius =" {DynamicResource ControlCornerRadius}" Padding =" {StaticResource TextControlErrorBorderPadding}" >
4965+ <AdornedElementPlaceholder />
4966+ </Border >
4967+ </ControlTemplate >
49624968 <Style x : Key =" DefaultTextBoxStyle" TargetType =" {x:Type TextBox}" >
49634969 <Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
4970+ <Setter Property =" Validation.ErrorTemplate" Value =" {DynamicResource DefaultTextBoxInvalidationStyle}" />
49644971 <Setter Property =" ContextMenu" Value =" {DynamicResource DefaultControlContextMenu}" />
49654972 <Setter Property =" Foreground" Value =" {DynamicResource TextControlForeground}" />
49664973 <Setter Property =" CaretBrush" Value =" {DynamicResource TextControlForeground}" />
Original file line number Diff line number Diff line change 7878 <Thickness x : Key =" DatePickerHostPadding" >0,1,0,2</Thickness >
7979 <Thickness x : Key =" DatePickerHostMonthPadding" >9,0,0,1</Thickness >
8080 <Thickness x : Key =" ComboBoxEditableTextPadding" >10,0,30,0</Thickness >
81+ <Thickness x : Key =" TextControlErrorBorderPadding" >1</Thickness >
8182 <system : Double x : Key =" ComboBoxMinHeight" >24</system : Double >
8283 <!-- <Thickness x:Key="ComboBoxPadding">12,1,0,3</Thickness> -->
8384 <system : Double x : Key =" NavigationViewItemOnLeftMinHeight" >32</system : Double >
48724873 </Trigger >
48734874 </ControlTemplate .Triggers>
48744875 </ControlTemplate >
4876+ <ControlTemplate x : Key =" DefaultTextBoxInvalidationStyle" >
4877+ <Border BorderBrush =" {DynamicResource SystemFillColorCriticalBrush}" BorderThickness =" {DynamicResource TextControlBorderThemeThickness}" CornerRadius =" {DynamicResource ControlCornerRadius}" Padding =" {StaticResource TextControlErrorBorderPadding}" >
4878+ <AdornedElementPlaceholder />
4879+ </Border >
4880+ </ControlTemplate >
48754881 <Style x : Key =" DefaultTextBoxStyle" TargetType =" {x:Type TextBox}" >
48764882 <Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
4883+ <Setter Property =" Validation.ErrorTemplate" Value =" {DynamicResource DefaultTextBoxInvalidationStyle}" />
48774884 <Setter Property =" ContextMenu" Value =" {DynamicResource DefaultControlContextMenu}" />
48784885 <Setter Property =" Foreground" Value =" {DynamicResource TextControlForeground}" />
48794886 <Setter Property =" CaretBrush" Value =" {DynamicResource TextControlForeground}" />
Original file line number Diff line number Diff line change 7878 <Thickness x : Key =" DatePickerHostPadding" >0,1,0,2</Thickness >
7979 <Thickness x : Key =" DatePickerHostMonthPadding" >9,0,0,1</Thickness >
8080 <Thickness x : Key =" ComboBoxEditableTextPadding" >10,0,30,0</Thickness >
81+ <Thickness x : Key =" TextControlErrorBorderPadding" >1</Thickness >
8182 <system : Double x : Key =" ComboBoxMinHeight" >24</system : Double >
8283 <!-- <Thickness x:Key="ComboBoxPadding">12,1,0,3</Thickness> -->
8384 <system : Double x : Key =" NavigationViewItemOnLeftMinHeight" >32</system : Double >
49684969 </Trigger >
49694970 </ControlTemplate .Triggers>
49704971 </ControlTemplate >
4972+ <ControlTemplate x : Key =" DefaultTextBoxInvalidationStyle" >
4973+ <Border BorderBrush =" {DynamicResource SystemFillColorCriticalBrush}" BorderThickness =" {DynamicResource TextControlBorderThemeThickness}" CornerRadius =" {DynamicResource ControlCornerRadius}" Padding =" {StaticResource TextControlErrorBorderPadding}" >
4974+ <AdornedElementPlaceholder />
4975+ </Border >
4976+ </ControlTemplate >
49714977 <Style x : Key =" DefaultTextBoxStyle" TargetType =" {x:Type TextBox}" >
49724978 <Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
4979+ <Setter Property =" Validation.ErrorTemplate" Value =" {DynamicResource DefaultTextBoxInvalidationStyle}" />
49734980 <Setter Property =" ContextMenu" Value =" {DynamicResource DefaultControlContextMenu}" />
49744981 <Setter Property =" Foreground" Value =" {DynamicResource TextControlForeground}" />
49754982 <Setter Property =" CaretBrush" Value =" {DynamicResource TextControlForeground}" />
Original file line number Diff line number Diff line change 7878 <Thickness x : Key =" DatePickerHostPadding" >0,1,0,2</Thickness >
7979 <Thickness x : Key =" DatePickerHostMonthPadding" >9,0,0,1</Thickness >
8080 <Thickness x : Key =" ComboBoxEditableTextPadding" >10,0,30,0</Thickness >
81+ <Thickness x : Key =" TextControlErrorBorderPadding" >1</Thickness >
8182 <system : Double x : Key =" ComboBoxMinHeight" >24</system : Double >
8283 <!-- <Thickness x:Key="ComboBoxPadding">12,1,0,3</Thickness> -->
8384 <system : Double x : Key =" NavigationViewItemOnLeftMinHeight" >32</system : Double >
42184219 </Trigger >
42194220 </ControlTemplate .Triggers>
42204221 </ControlTemplate >
4222+ <ControlTemplate x : Key =" DefaultTextBoxInvalidationStyle" >
4223+ <Border BorderBrush =" {DynamicResource SystemFillColorCriticalBrush}" BorderThickness =" {DynamicResource TextControlBorderThemeThickness}" CornerRadius =" {DynamicResource ControlCornerRadius}" Padding =" {StaticResource TextControlErrorBorderPadding}" >
4224+ <AdornedElementPlaceholder />
4225+ </Border >
4226+ </ControlTemplate >
42214227 <Style x : Key =" DefaultTextBoxStyle" TargetType =" {x:Type TextBox}" >
42224228 <Setter Property =" FocusVisualStyle" Value =" {x:Null}" />
4229+ <Setter Property =" Validation.ErrorTemplate" Value =" {DynamicResource DefaultTextBoxInvalidationStyle}" />
42234230 <Setter Property =" ContextMenu" Value =" {DynamicResource DefaultControlContextMenu}" />
42244231 <Setter Property =" Foreground" Value =" {DynamicResource TextControlForeground}" />
42254232 <Setter Property =" CaretBrush" Value =" {DynamicResource TextControlForeground}" />
You can’t perform that action at this time.
0 commit comments