Skip to content

Commit

Permalink
Grid View: Game controls on covers won't be displayed when game is no…
Browse files Browse the repository at this point in the history
…t hovered #29
  • Loading branch information
darklinkpower committed May 11, 2022
1 parent 4a98090 commit 3be7fe6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/DerivedStyles/GridViewItemTemplate.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -527,17 +527,14 @@
</Border>
</DockPanel>
<Viewbox VerticalAlignment="Bottom" HorizontalAlignment="Left"
Name="GameControls">
Name="GameControls" Visibility="Collapsed">
<Border Margin="5,50,30,5"
CornerRadius="{DynamicResource ControlCornerRadiusSmall}" Padding="1">
<Border.Style>
<Style TargetType="Border">
<Setter Property="Background" Value="#87000000" />
<Setter Property="Opacity" Value="0.1" />
<Setter Property="Opacity" Value="0.40" />
<Style.Triggers>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type StackPanel}}, Path=IsMouseOver}" Value="True">
<Setter Property="Opacity" Value="0.40" />
</DataTrigger>
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Self}, Path=IsMouseOver}" Value="True">
<Setter Property="Background" Value="#A6000000" />
<Setter Property="Opacity" Value="1.0" />
Expand Down Expand Up @@ -593,6 +590,9 @@
</Border>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Visibility" Value="Visible" TargetName="GameControls"/>
</Trigger>
<MultiDataTrigger>
<MultiDataTrigger.Conditions>
<Condition Binding="{Binding ElementName=EnableHighlightAnimation, Path=Tag}" Value="True" />
Expand Down

0 comments on commit 3be7fe6

Please sign in to comment.