fix: fix ip box focus handling and styles. fix multicombobox focus style.
This commit is contained in:
@@ -120,7 +120,7 @@
|
|||||||
<Setter Property="Background" Value="{DynamicResource IPv4BoxPressedBackground}" />
|
<Setter Property="Background" Value="{DynamicResource IPv4BoxPressedBackground}" />
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxFocusBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxFocusBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:focus-within">
|
<Style Selector="^:focus-within /template/ Border#PART_Border">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxFocusBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource TextBoxFocusBorderBrush}" />
|
||||||
</Style>
|
</Style>
|
||||||
<Style Selector="^:disabled">
|
<Style Selector="^:disabled">
|
||||||
|
|||||||
@@ -179,6 +179,14 @@
|
|||||||
<Setter Property="Foreground" Value="{DynamicResource ComboBoxIconPressedForeground}" />
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxIconPressedForeground}" />
|
||||||
</Style>
|
</Style>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
|
<Style Selector="^:focus">
|
||||||
|
<Setter Property="Background" Value="{DynamicResource ComboBoxSelectorFocusBackground}" />
|
||||||
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxSelectorFocusBorderBrush}" />
|
||||||
|
<Style Selector="^ /template/ PathIcon#DropDownGlyph">
|
||||||
|
<Setter Property="Foreground" Value="{DynamicResource ComboBoxIconFocusForeground}" />
|
||||||
|
</Style>
|
||||||
|
</Style>
|
||||||
|
|
||||||
<Style Selector="^:dropdownopen">
|
<Style Selector="^:dropdownopen">
|
||||||
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxSelectorPressedBorderBrush}" />
|
<Setter Property="BorderBrush" Value="{DynamicResource ComboBoxSelectorPressedBorderBrush}" />
|
||||||
|
|||||||
@@ -309,6 +309,7 @@ public class IPv4Box: TemplatedControl
|
|||||||
|
|
||||||
protected override void OnLostFocus(RoutedEventArgs e)
|
protected override void OnLostFocus(RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
base.OnLostFocus(e);
|
||||||
foreach (var pre in _presenters)
|
foreach (var pre in _presenters)
|
||||||
{
|
{
|
||||||
pre?.HideCaret();
|
pre?.HideCaret();
|
||||||
|
|||||||
Reference in New Issue
Block a user