tikiTofu Posted Tuesday at 12:20 AM Share Posted Tuesday at 12:20 AM (edited) 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> Edited Tuesday at 12:21 AM by tikiTofu Quote Link to comment Share on other sites More sharing options...
C-Beats Posted Tuesday at 02:00 PM Share Posted Tuesday at 02:00 PM Inside the marquee views is an "IsActive" binding you can use for this purpose. When true Big Box has focus, when false it doesn't (typically because you're playing a game) 1 Quote Link to comment Share on other sites More sharing options...
tikiTofu Posted Tuesday at 03:44 PM Author Share Posted Tuesday at 03:44 PM (edited) Thanks so much! This worked for me.. <DataTrigger Binding="{Binding Path=IsActive}" Value="False"> Edited Tuesday at 03:44 PM by tikiTofu Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.