This commit is contained in:
NaBian 2018-12-10 20:07:53 +08:00
parent 9a76cea5ba
commit 8200e746af
2 changed files with 19 additions and 1 deletions

View File

@ -45,6 +45,20 @@
<Style x:Key="{x:Static ToolBar.MenuStyleKey}" BasedOn="{StaticResource MenuBaseStyle}" TargetType="Menu"/>
<Style x:Key="{x:Static ToolBar.ToggleButtonStyleKey}" BasedOn="{StaticResource ToggleButtonBaseStyle}" TargetType="ToggleButton">
<Setter Property="Background" Value="{DynamicResource RegionBrush}"/>
<Setter Property="Foreground" Value="{DynamicResource PrimaryTextBrush}"/>
<Setter Property="BorderThickness" Value="1"/>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="{DynamicResource DarkDefaultBrush}"/>
</Trigger>
<Trigger Property="IsPressed" Value="True">
<Setter Property="Background" Value="{DynamicResource BorderBrush}"/>
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="ToolBarThumbStyle" TargetType="Thumb">
<Setter Property="Template">
<Setter.Value>

View File

@ -17,7 +17,11 @@ namespace HandyControl.Tools.Converter
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
if (value is bool boolValue)
{
return !boolValue;
}
return value;
}
}
}