|
18 | 18 |
|
19 | 19 | <Border Background="{DynamicResource MahApps.Brushes.ThemeBackground2}" Margin="1" Height="80" CornerRadius="2"> |
20 | 20 | <Grid> |
21 | | - <Button Style="{StaticResource ButtonWrapper}" HorizontalAlignment="Left" VerticalAlignment="Top" MaxWidth="52" Margin="2,2,120,2" Cursor="Hand" Click="GameImage_Click"> |
| 21 | + <Button Style="{StaticResource ButtonWrapper}" HorizontalAlignment="Left" VerticalAlignment="Top" MaxWidth="52" Margin="2,2,120,2" Cursor="Hand" Click="GoToGame_Click"> |
22 | 22 | <local:CacheImage ImageCacheType="GameCover" Stretch="Fill" Data="{Binding Path=Game}" CornerRadius="2"/> |
23 | 23 | </Button> |
24 | 24 | <TextBlock HorizontalAlignment="Left" VerticalAlignment="Top" Margin="56,2,0,0" MaxWidth="106" FontSize="6" FontWeight="Bold" TextTrimming="CharacterEllipsis"> |
|
154 | 154 | </Ellipse.Style> |
155 | 155 | </Ellipse> |
156 | 156 | </StackPanel> |
157 | | - <local:IconButton x:Name="uiBtnInstall" Kind="Primary" IsEnabled="False" Text="Install" FontSize="5" Icon="{StaticResource IconInstalledGamesSettings}" IconScale="0.29" IconMargin="-9,-7,-5.5,-7" CornerRadius="2" Height="9" Width="34" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="64,62,1,0" ToolTip="Install Game" Click="OpenInstallOptions_Click"/> |
| 157 | + <Grid HorizontalAlignment="Left" VerticalAlignment="Center" Margin="64,62,1,0"> |
| 158 | + <local:IconButton x:Name="uiBtnInstall" Kind="Primary" IsEnabled="False" Text="Install" FontSize="5" Icon="{StaticResource IconInstalledGamesSettings}" IconScale="0.29" IconMargin="-9,-7,-5.5,-7" CornerRadius="2" Height="9" Width="34" ToolTip="Install Game" Click="OpenInstallOptions_Click"> |
| 159 | + <local:IconButton.Style> |
| 160 | + <Style TargetType="local:IconButton" BasedOn="{StaticResource {x:Type local:IconButton}}"> |
| 161 | + <Setter Property="Visibility" Value="Visible"/> |
| 162 | + <Style.Triggers> |
| 163 | + <DataTrigger Binding="{Binding InstallationStepperProgress}" Value="2"> |
| 164 | + <Setter Property="Visibility" Value="Collapsed"/> |
| 165 | + </DataTrigger> |
| 166 | + </Style.Triggers> |
| 167 | + </Style> |
| 168 | + </local:IconButton.Style> |
| 169 | + </local:IconButton> |
| 170 | + <local:IconButton Kind="Primary" Text="Go to Game" FontSize="5" CornerRadius="2" Height="9" Width="34" Click="GoToGame_Click"> |
| 171 | + <local:IconButton.Style> |
| 172 | + <Style TargetType="local:IconButton" BasedOn="{StaticResource {x:Type local:IconButton}}"> |
| 173 | + <Setter Property="Visibility" Value="Collapsed"/> |
| 174 | + <Style.Triggers> |
| 175 | + <DataTrigger Binding="{Binding InstallationStepperProgress}" Value="2"> |
| 176 | + <Setter Property="Visibility" Value="Visible"/> |
| 177 | + </DataTrigger> |
| 178 | + </Style.Triggers> |
| 179 | + </Style> |
| 180 | + </local:IconButton.Style> |
| 181 | + </local:IconButton> |
| 182 | + </Grid> |
158 | 183 | <Grid x:Name="uiInstallOptions" Visibility="Collapsed" Margin="56,10,1,2" Width="122" Background="{DynamicResource MahApps.Brushes.ThemeBackground2}"> |
159 | 184 | <Grid> |
160 | 185 | <Grid.Style> |
|
0 commit comments