Hello, I'm trying to get the marquee to only be a single static png (marquee.png) except when a game is running.
I'm modifying CriticalZoneV2 - Default to understand how it works since I'm very new to BigBox/Themes.
Is there some type of binding to tell when a game is running? I just put in IsGameRunning as a placeholder binding. My thought was to use a DataTrigger to chose the scenario (playing a game vs not playing a game..)
Any ideas of how to achieve this?
Thank you!
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="562" d:DesignWidth="1000" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Style="{DynamicResource UserControlStyle}"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://siteoforigin:,,,/Themes/CriticalZoneV2 - Default/Styles/UserControlStyle.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<Image Name="MarqueeImage"
Stretch="Uniform"
HorizontalAlignment="Center"
VerticalAlignment="Center"
RenderOptions.BitmapScalingMode="HighQuality">
<Image.Style>
<Style TargetType="Image">
<Setter Property="Source" Value="pack://siteoforigin:,,,/Themes/CriticalZoneV2 - Default/Images/marquee.png" />
<Style.Triggers>
<DataTrigger Binding="{Binding Path=IsGameRunning}" Value="True">
<Setter Property="Source" Value="{Binding Path=SelectedGame.MarqueeImagePath}" />
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Grid>
</UserControl>