|
|
@ -1,13 +1,13 @@ |
|
|
|
<ui:ContentDialog |
|
|
|
<ui:ContentDialog |
|
|
|
CloseButtonText="Close" |
|
|
|
CloseButtonText="Close" |
|
|
|
|
|
|
|
DialogHeight="512" |
|
|
|
|
|
|
|
DialogWidth="640" |
|
|
|
Loaded="LaunchOptionsDialog_OnLoaded" |
|
|
|
Loaded="LaunchOptionsDialog_OnLoaded" |
|
|
|
Title="Launch Options" |
|
|
|
Title="Launch Options" |
|
|
|
d:DataContext="{d:DesignInstance Type=viewModels:LaunchOptionsDialogViewModel, |
|
|
|
d:DataContext="{d:DesignInstance Type=viewModels:LaunchOptionsDialogViewModel, |
|
|
|
IsDesignTimeCreatable=True}" |
|
|
|
IsDesignTimeCreatable=True}" |
|
|
|
d:DesignHeight="512" |
|
|
|
d:DesignHeight="512" |
|
|
|
d:DesignWidth="512" |
|
|
|
d:DesignWidth="512" |
|
|
|
DialogHeight="512" |
|
|
|
|
|
|
|
DialogWidth="640" |
|
|
|
|
|
|
|
mc:Ignorable="d" |
|
|
|
mc:Ignorable="d" |
|
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}" |
|
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}" |
|
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
|
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}" |
|
|
@ -27,9 +27,10 @@ |
|
|
|
<Style BasedOn="{StaticResource {x:Type ui:ContentDialog}}" TargetType="{x:Type local:LaunchOptionsDialog}" /> |
|
|
|
<Style BasedOn="{StaticResource {x:Type ui:ContentDialog}}" TargetType="{x:Type local:LaunchOptionsDialog}" /> |
|
|
|
|
|
|
|
|
|
|
|
<converters:LaunchOptionConverter x:Key="LaunchOptionConverter" /> |
|
|
|
<converters:LaunchOptionConverter x:Key="LaunchOptionConverter" /> |
|
|
|
<converters:ValueConverterGroup x:Key="LaunchOptionIntToDoubleConverter"> |
|
|
|
<converters:LaunchOptionIntDoubleConverter x:Key="LaunchOptionIntDoubleConverter" /> |
|
|
|
|
|
|
|
<converters:ValueConverterGroup x:Key="LaunchOptionIntToStringConverter"> |
|
|
|
<converters:LaunchOptionConverter /> |
|
|
|
<converters:LaunchOptionConverter /> |
|
|
|
<converters:IntDoubleConverter /> |
|
|
|
<converters:LaunchOptionIntDoubleConverter /> |
|
|
|
</converters:ValueConverterGroup> |
|
|
|
</converters:ValueConverterGroup> |
|
|
|
|
|
|
|
|
|
|
|
<!-- Bool type card (checkboxes) --> |
|
|
|
<!-- Bool type card (checkboxes) --> |
|
|
@ -43,8 +44,8 @@ |
|
|
|
FontSize="16" |
|
|
|
FontSize="16" |
|
|
|
FontWeight="Bold" |
|
|
|
FontWeight="Bold" |
|
|
|
Margin="0,8" |
|
|
|
Margin="0,8" |
|
|
|
TextWrapping="Wrap" |
|
|
|
Text="{Binding Title}" |
|
|
|
Text="{Binding Title}" /> |
|
|
|
TextWrapping="Wrap" /> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<StackPanel Orientation="Horizontal"> |
|
|
|
<ItemsControl ItemsSource="{Binding Options}"> |
|
|
|
<ItemsControl ItemsSource="{Binding Options}"> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
@ -69,8 +70,8 @@ |
|
|
|
FontSize="16" |
|
|
|
FontSize="16" |
|
|
|
FontWeight="Bold" |
|
|
|
FontWeight="Bold" |
|
|
|
Margin="0,8" |
|
|
|
Margin="0,8" |
|
|
|
TextWrapping="Wrap" |
|
|
|
Text="{Binding Title}" |
|
|
|
Text="{Binding Title}" /> |
|
|
|
TextWrapping="Wrap" /> |
|
|
|
<ItemsControl ItemsSource="{Binding Options}"> |
|
|
|
<ItemsControl ItemsSource="{Binding Options}"> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<DataTemplate> |
|
|
@ -102,8 +103,8 @@ |
|
|
|
FontSize="16" |
|
|
|
FontSize="16" |
|
|
|
FontWeight="Bold" |
|
|
|
FontWeight="Bold" |
|
|
|
Margin="0,8" |
|
|
|
Margin="0,8" |
|
|
|
TextWrapping="Wrap" |
|
|
|
Text="{Binding Title}" |
|
|
|
Text="{Binding Title}" /> |
|
|
|
TextWrapping="Wrap" /> |
|
|
|
<ItemsControl ItemsSource="{Binding Options}"> |
|
|
|
<ItemsControl ItemsSource="{Binding Options}"> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
<ItemsControl.ItemTemplate> |
|
|
|
<DataTemplate> |
|
|
|
<DataTemplate> |
|
|
@ -112,7 +113,9 @@ |
|
|
|
<ui:NumberBox |
|
|
|
<ui:NumberBox |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
HorizontalAlignment="Stretch" |
|
|
|
Margin="8" |
|
|
|
Margin="8" |
|
|
|
Value="{Binding OptionValue, Converter={StaticResource LaunchOptionIntToDoubleConverter}}" |
|
|
|
PlaceholderText="{Binding DefaultValue, Mode=OneWay, Converter={StaticResource LaunchOptionConverter}}" |
|
|
|
|
|
|
|
ValidationMode="InvalidInputOverwritten" |
|
|
|
|
|
|
|
Value="{Binding OptionValue, Converter={StaticResource LaunchOptionIntDoubleConverter}, Mode=TwoWay}" |
|
|
|
VerticalAlignment="Stretch" /> |
|
|
|
VerticalAlignment="Stretch" /> |
|
|
|
</StackPanel> |
|
|
|
</StackPanel> |
|
|
|
</DataTemplate> |
|
|
|
</DataTemplate> |
|
|
|