Compilation mod button fixes

This commit is contained in:
Justin Swanson 2019-11-29 17:42:00 -06:00
parent 25e1023e40
commit 9357717291

View File

@ -26,7 +26,7 @@
Background="{StaticResource SecondaryBrush}" Background="{StaticResource SecondaryBrush}"
CornerRadius="12" CornerRadius="12"
Opacity="0.3" Opacity="0.3"
Visibility="{Binding IsMouseOver, Converter={StaticResource bool2VisibilityHiddenConverter}, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"> Visibility="{Binding IsChecked, Converter={StaticResource bool2VisibilityHiddenConverter}, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}">
<Border.Effect> <Border.Effect>
<BlurEffect Radius="10" /> <BlurEffect Radius="10" />
</Border.Effect> </Border.Effect>
@ -35,27 +35,31 @@
Background="Transparent" Background="Transparent"
BorderThickness="0" BorderThickness="0"
Click="Button_Click"> Click="Button_Click">
<Image Source="{Binding Image, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}"> <Button.Template>
<Image.Style> <ControlTemplate>
<Style TargetType="Image"> <Image Source="{Binding Image, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}">
<Style.Triggers> <Image.Style>
<MultiDataTrigger> <Style TargetType="Image">
<MultiDataTrigger.Conditions> <Style.Triggers>
<Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" Value="False" /> <MultiDataTrigger>
<Condition Binding="{Binding IsChecked, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" Value="False" /> <MultiDataTrigger.Conditions>
</MultiDataTrigger.Conditions> <Condition Binding="{Binding IsMouseOver, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" Value="False" />
<MultiDataTrigger.Setters> <Condition Binding="{Binding IsChecked, RelativeSource={RelativeSource AncestorType={x:Type UserControl}}}" Value="False" />
<Setter Property="Effect"> </MultiDataTrigger.Conditions>
<Setter.Value> <MultiDataTrigger.Setters>
<BlurEffect Radius="2" /> <Setter Property="Effect">
</Setter.Value> <Setter.Value>
</Setter> <BlurEffect Radius="2" />
</MultiDataTrigger.Setters> </Setter.Value>
</MultiDataTrigger> </Setter>
</Style.Triggers> </MultiDataTrigger.Setters>
</Style> </MultiDataTrigger>
</Image.Style> </Style.Triggers>
</Image> </Style>
</Image.Style>
</Image>
</ControlTemplate>
</Button.Template>
</Button> </Button>
<Border <Border
BorderBrush="{StaticResource SecondaryBrush}" BorderBrush="{StaticResource SecondaryBrush}"