|
57 | 57 | <conv:InverseNullConverter x:Key="invNullConv"/> |
58 | 58 | <conv:StringToArrayConverter x:Key="stringToArrayConv"/> |
59 | 59 | <conv:IsGameMappedConverter x:Key="isGameMappedConv"/> |
| 60 | + <conv:GameSettingsEarlyAccessContentConverter x:Key="earlyAccessContentConv"/> |
60 | 61 | </UserControl.Resources> |
61 | 62 | <UserControl.InputBindings> |
62 | 63 | <KeyBinding Key="Esc"> |
|
634 | 635 | <TextBox Width="100" Margin="115,0,0,0" mah:TextBoxHelper.Watermark="{Binding Game.Metadata.AgeRating}" mah:TextBoxHelper.UseFloatingWatermark="True" Text="{Binding UpdateGame.UserMetadata.AgeRating,TargetNullValue='',FallbackValue={x:Null}}" mah:ControlsHelper.CornerRadius="5"/> |
635 | 636 | <DatePicker Width="100" Margin="69,0,0,0" SelectedDate="{Binding UpdateGame.UserMetadata.ReleaseDate}" mah:TextBoxHelper.Watermark="{Binding Path=Game.Metadata.ReleaseDate,StringFormat='{}{0:dd/MM/yyyy}'}" mah:ControlsHelper.CornerRadius="5" mah:TextBoxHelper.UseFloatingWatermark="True"/> |
636 | 637 | <TextBox Width="100" Margin="67,0,0,0" mah:TextBoxHelper.Watermark="{Binding Game.Metadata.Rating}" mah:TextBoxHelper.UseFloatingWatermark="True" Text="{Binding UpdateGame.UserMetadata.Rating}" mah:ControlsHelper.CornerRadius="5"/> |
637 | | - <CheckBox Content="{Binding Game.Metadata.EarlyAccess}" IsChecked="{Binding UpdateGame.UserMetadata.EarlyAccess}" Margin="68,0,0,0"/> |
| 638 | + <Grid Margin="68,0,0,0"> |
| 639 | + <CheckBox Margin="0,0,0,0" mah:CheckBoxHelper.CheckCornerRadius="5"> |
| 640 | + <CheckBox.Style> |
| 641 | + <Style TargetType="CheckBox" BasedOn="{StaticResource MahApps.Styles.CheckBox}"> |
| 642 | + <Style.Triggers> |
| 643 | + <DataTrigger Binding="{Binding UpdateGame.UserMetadata.EarlyAccess}" Value="{x:Null}"> |
| 644 | + <Setter Property="IsChecked" Value="{Binding Game.Metadata.EarlyAccess}"/> |
| 645 | + </DataTrigger> |
| 646 | + </Style.Triggers> |
| 647 | + </Style> |
| 648 | + </CheckBox.Style> |
| 649 | + </CheckBox> |
| 650 | + <CheckBox PreviewMouseLeftButtonDown="CheckBox_PreviewMouseLeftButtonDown" Click="CheckBox_Click" IsChecked="{Binding UpdateGame.UserMetadata.EarlyAccess}" mah:CheckBoxHelper.CheckCornerRadius="5" mah:CheckBoxHelper.CheckBackgroundFillIndeterminateMouseOver="Transparent" mah:CheckBoxHelper.CheckBackgroundFillIndeterminatePressed="Transparent" mah:CheckBoxHelper.CheckBackgroundFillChecked="Transparent" mah:CheckBoxHelper.CheckBackgroundFillUnchecked="Transparent" mah:CheckBoxHelper.CheckBackgroundFillIndeterminate="Transparent" mah:CheckBoxHelper.CheckGlyphForegroundIndeterminate="Transparent" mah:CheckBoxHelper.CheckGlyphForegroundIndeterminateMouseOver="Transparent" mah:CheckBoxHelper.CheckGlyphForegroundIndeterminatePressed="Transparent"> |
| 651 | + <CheckBox.Content> |
| 652 | + <MultiBinding Converter="{StaticResource earlyAccessContentConv}"> |
| 653 | + <Binding Path="Game.Metadata.EarlyAccess"/> |
| 654 | + <Binding Path="UpdateGame.UserMetadata.EarlyAccess"/> |
| 655 | + </MultiBinding> |
| 656 | + </CheckBox.Content> |
| 657 | + </CheckBox> |
| 658 | + </Grid> |
638 | 659 | </StackPanel> |
639 | 660 |
|
640 | 661 | <TextBlock Text="Default Launch Executable" FontSize="15" FontWeight="Bold" TextDecorations="Underline" Margin="0,5,0,5"/> |
|
0 commit comments