| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
. | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| <Style x:Key="GameMenuButton" BasedOn="{StaticResource {x:Type ButtonEx}}" TargetType="ButtonEx"> |
| mc:Ignorable="d"> |
| <Setter Property="Margin" Value="5" /> |
| |
| </Style> |
| <Style TargetType="{x:Type GameMenu}"> |
| |
| <Setter Property="Template"> |
| <Style x:Key="GameMenuBorder" TargetType="Border"> |
| <Setter.Value> |
| <Setter Property="CornerRadius" Value="3" /> |
| <ControlTemplate TargetType="{x:Type GameMenu}"> |
| <Setter Property="Width" Value="400" /> |
| <Grid x:Name="PART_MenuHost" |
| <Setter Property="Background" Value="{DynamicResource OverlayMenuBackgroundBrush}" /> |
| Background="{DynamicResource OverlayBrush}" |
| |
| KeyboardNavigation.TabNavigation="Cycle" |
| |
| KeyboardNavigation.DirectionalNavigation="Cycle" |
| |
| d:DesignWidth="{StaticResource DesignWidth}" |
| |
| d:DesignHeight="{StaticResource DesignHeight}"> |
| |
| <Border Background="{DynamicResource OverlayMenuBackgroundBrush}" |
| |
| CornerRadius="3" Width="400" |
| |
| HorizontalAlignment="Center" |
| |
| VerticalAlignment="Center"> |
| |
| <DockPanel> |
| |
| <Grid DockPanel.Dock="Top"> |
| |
| <Image Source="{Binding Game.CoverImageObject}" /> |
| |
| <TextBlock Text="{Binding Game.DisplayName}" |
| |
| Background="#AA000000" |
| |
| Style="{DynamicResource TextBlockBaseStyle}" |
| |
| Padding="15,15,15,15" TextWrapping="Wrap" |
| |
| HorizontalAlignment="Stretch" |
| |
| VerticalAlignment="Bottom"> |
| |
| </TextBlock> |
| |
| </Grid> |
| |
| <ItemsControlEx x:Name="PART_ItemsHost" Focusable="False" |
| |
| KeyboardNavigation.DirectionalNavigation="Once"> |
| |
| <ItemsControl.ItemTemplate> |
| |
| <DataTemplate> |
| |
| <ButtonEx Content="{Binding Title}" |
| |
| Command="{Binding Command}" |
| |
| CommandParameter="{Binding CommandParameter}" |
| |
| Margin="5" /> |
| |
| </DataTemplate> |
| |
| </ItemsControl.ItemTemplate> |
| |
| <ItemsControl.Template> |
| |
| <ControlTemplate> |
| |
| <ScrollViewer Focusable="False" |
| |
| HorizontalScrollBarVisibility="Disabled" |
| |
| VerticalScrollBarVisibility="Auto" |
| |
| CanContentScroll="True"> |
| |
| <ItemsPresenter /> |
| |
| </ScrollViewer> |
| |
| </ControlTemplate> |
| |
| </ItemsControl.Template> |
| |
| </ItemsControlEx> |
| |
| </DockPanel> |
| |
| </Border> |
| |
| </Grid> |
| |
| </ControlTemplate> |
| |
| </Setter.Value> |
| |
| </Setter> |
| |
| </Style> |
| </Style> |
. | |
| |
| |
| <Style x:Key="GameMenuHeaderText" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock" > |
| |
| <Setter Property="VerticalAlignment" Value="Bottom" /> |
| |
| <Setter Property="HorizontalAlignment" Value="Stretch" /> |
| |
| <Setter Property="TextWrapping" Value="Wrap" /> |
| |
| <Setter Property="Padding" Value="15,15,15,15" /> |
| |
| <Setter Property="Background" Value="#AA000000" /> |
| |
| </Style> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuHeaderTemplate"> |
| |
| <TextBlock Text="{Binding DisplayName}" |
| |
| Style="{DynamicResource GameMenuHeaderText}" /> |
| |
| </DataTemplate> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuPlayButtonTemplate"> |
| |
| <StackPanel Orientation="Horizontal"> |
| |
| <TextBlock Text="" FontFamily="{DynamicResource FontIcoFont}" FontSize="24" Width="25" |
| |
| VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0"/> |
| |
| <TextBlock Text="{Binding}" VerticalAlignment="Center" /> |
| |
| </StackPanel> |
| |
| </DataTemplate> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuInstallButtonTemplate"> |
| |
| <StackPanel Orientation="Horizontal"> |
| |
| <TextBlock Text="" FontFamily="{DynamicResource FontIcoFont}" FontSize="24" Width="25" |
| |
| VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0"/> |
| |
| <TextBlock Text="{Binding}" VerticalAlignment="Center" /> |
| |
| </StackPanel> |
| |
| </DataTemplate> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuFavoriesButtonTemplate"> |
| |
| <StackPanel Orientation="Horizontal"> |
| |
| <TextBlock Text="" FontFamily="{DynamicResource FontIcoFont}" FontSize="24" Width="25" |
| |
| VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0"/> |
| |
| <TextBlock Text="{Binding}" VerticalAlignment="Center" /> |
| |
| </StackPanel> |
| |
| </DataTemplate> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuVisibilityButtonTemplate"> |
| |
| <StackPanel Orientation="Horizontal"> |
| |
| <TextBlock Text="" FontFamily="{DynamicResource FontIcoFont}" FontSize="24" Width="25" |
| |
| VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0"/> |
| |
| <TextBlock Text="{Binding}" VerticalAlignment="Center" /> |
| |
| </StackPanel> |
| |
| </DataTemplate> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuRemoveButtonTemplate"> |
| |
| <StackPanel Orientation="Horizontal"> |
| |
| <TextBlock Text="" FontFamily="{DynamicResource FontIcoFont}" FontSize="24" Width="25" |
| |
| VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0"/> |
| |
| <TextBlock Text="{Binding}" VerticalAlignment="Center" /> |
| |
| </StackPanel> |
| |
| </DataTemplate> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuUninstallButtonTemplate"> |
| |
| <StackPanel Orientation="Horizontal"> |
| |
| <TextBlock Text="" FontFamily="{DynamicResource FontIcoFont}" FontSize="24" Width="25" |
| |
| VerticalAlignment="Center" HorizontalAlignment="Center" Margin="0,0,10,0"/> |
| |
| <TextBlock Text="{Binding}" VerticalAlignment="Center" /> |
| |
| </StackPanel> |
| |
| </DataTemplate> |
| |
| |
| |
| <DataTemplate x:Key="GameMenuCustomActionButtonTemplate"> |
| |
| <StackPanel Orientation="Horizontal"> |
| |
| <TextBlock Width="25" Margin="0,0,10,0" |
| |
| VerticalAlignment="Center" HorizontalAlignment="Center" /> |
| |
| <TextBlock Text="{Binding}" VerticalAlignment="Center" /> |
| |
| </StackPanel> |
| |
| </DataTemplate> |
| </ResourceDictionary> |
| </ResourceDictionary> |