style<ToggleButton>: hover background for maximize/restore window button

This commit is contained in:
leo 2021-06-22 12:59:56 +08:00
parent 8c46380ecd
commit a99822ec5a

View file

@ -164,13 +164,9 @@
<Trigger Property="IsChecked" Value="True"> <Trigger Property="IsChecked" Value="True">
<Setter TargetName="Icon" Property="Data" Value="{DynamicResource Icon.Restore}"/> <Setter TargetName="Icon" Property="Data" Value="{DynamicResource Icon.Restore}"/>
</Trigger> </Trigger>
<MultiTrigger> <Trigger Property="IsMouseOver" Value="True">
<MultiTrigger.Conditions>
<Condition Property="IsChecked" Value="False"/>
<Condition Property="IsMouseOver" Value="True"/>
</MultiTrigger.Conditions>
<Setter TargetName="BG" Property="Background" Value="#40000000"/> <Setter TargetName="BG" Property="Background" Value="#40000000"/>
</MultiTrigger> </Trigger>
</ControlTemplate.Triggers> </ControlTemplate.Triggers>
</ControlTemplate> </ControlTemplate>
</Setter.Value> </Setter.Value>