mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Only show game icon & title on hover (but respecting ImageContainsTitle)
This commit is contained in:
parent
645222e73a
commit
566b1bd2b5
@ -78,14 +78,27 @@
|
|||||||
</Grid.OpacityMask>
|
</Grid.OpacityMask>
|
||||||
<Grid ClipToBounds="True">
|
<Grid ClipToBounds="True">
|
||||||
<mahapps:ProgressRing x:Name="LoadingProgress" />
|
<mahapps:ProgressRing x:Name="LoadingProgress" />
|
||||||
<TextBlock Text="{Binding Metadata.Title}" VerticalAlignment="Bottom" FontSize="14" Margin="10, 0, 0, 10" Panel.ZIndex="1"/>
|
<TextBlock
|
||||||
|
Text="{Binding Metadata.Title}"
|
||||||
|
FontSize="16"
|
||||||
|
VerticalAlignment="Bottom"
|
||||||
|
Margin="10, 0, 0, 10"
|
||||||
|
Panel.ZIndex="1">
|
||||||
|
<TextBlock.Visibility>
|
||||||
|
<MultiBinding Converter="{StaticResource MathConverter}" ConverterParameter="Or(!x, y) ? `Visible` : `Collapsed`">
|
||||||
|
<Binding Path="Metadata.ImageContainsTitle" />
|
||||||
|
<Binding ElementName="ModListTile" Path="IsMouseOver" />
|
||||||
|
</MultiBinding>
|
||||||
|
</TextBlock.Visibility>
|
||||||
|
</TextBlock>
|
||||||
<StackPanel Orientation="Horizontal" Margin="5, 5, 0, 0" VerticalAlignment="Top" HorizontalAlignment="Left" Panel.ZIndex="1">
|
<StackPanel Orientation="Horizontal" Margin="5, 5, 0, 0" VerticalAlignment="Top" HorizontalAlignment="Left" Panel.ZIndex="1">
|
||||||
<Border x:Name="GameIcon" Width="24" Height="24" CornerRadius="6">
|
<Border x:Name="GameIcon" Width="24" Height="24" CornerRadius="6">
|
||||||
<Border.Background>
|
<Border.Background>
|
||||||
<ImageBrush Stretch="Fill" ImageSource="{Binding GameMetaData.IconSource}"/>
|
<ImageBrush Stretch="Fill" ImageSource="{Binding GameMetaData.IconSource}"/>
|
||||||
</Border.Background>
|
</Border.Background>
|
||||||
</Border>
|
</Border>
|
||||||
<Grid Margin="5, 0, 0, 0">
|
<Grid Margin="5, 0, 0, 0"
|
||||||
|
Visibility="{Binding ElementName=ModListTile, Path=IsMouseOver, Converter={StaticResource bool2VisibilityConverter}}">
|
||||||
<TextBlock x:Name="GameName"
|
<TextBlock x:Name="GameName"
|
||||||
Text="{Binding GameMetaData.HumanFriendlyGameName}"
|
Text="{Binding GameMetaData.HumanFriendlyGameName}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
Loading…
Reference in New Issue
Block a user