-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathConfigurationDialog.axaml
More file actions
45 lines (39 loc) · 2.45 KB
/
ConfigurationDialog.axaml
File metadata and controls
45 lines (39 loc) · 2.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:vm="using:PostCodeSerialMonitor.ViewModels"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:assets="clr-namespace:PostCodeSerialMonitor.Assets"
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="450"
x:Class="PostCodeSerialMonitor.Views.ConfigurationDialog"
x:DataType="vm:ConfigurationDialogViewModel"
Title="{x:Static assets:Resources.Configuration}"
Width="400" Height="450"
WindowStartupLocation="CenterOwner">
<Grid RowDefinitions="*,Auto" Margin="10">
<ScrollViewer Grid.Row="0">
<StackPanel Spacing="10">
<TextBlock Text="{x:Static assets:Resources.LanguageSettings}" FontWeight="Bold" Margin="0,0,0,5"/>
<ComboBox Width="150"
ItemsSource="{Binding Languages}"
SelectedItem="{Binding SelectedLanguage, Mode=TwoWay}"/>
<TextBlock Text="{x:Static assets:Resources.UpdateSettings}" FontWeight="Bold" Margin="0,0,0,5"/>
<CheckBox Content="{x:Static assets:Resources.CheckApplicationUpdates}"
IsChecked="{Binding CheckForAppUpdates}"/>
<CheckBox Content="{x:Static assets:Resources.CheckCodeUpdates}"
IsChecked="{Binding CheckForCodeUpdates}"
Margin="0,10,0,0"/>
<TextBox Text="{Binding CodesMetaBaseUrl}"
Watermark="{x:Static assets:Resources.CodeMetaUrl}"
IsEnabled="{Binding CheckForCodeUpdates}"/>
<CheckBox Content="{x:Static assets:Resources.CheckFirmwareUpdates}"
IsChecked="{Binding CheckForFwUpdates}"
Margin="0,10,0,0"/>
</StackPanel>
</ScrollViewer>
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right" Spacing="10" Margin="0,10,0,0">
<Button Content="{x:Static assets:Resources.Cancel}" Command="{Binding CancelCommand}" CommandParameter="{Binding $parent[Window]}"/>
<Button Content="{x:Static assets:Resources.Save}" Command="{Binding SaveCommand}" CommandParameter="{Binding $parent[Window]}"/>
</StackPanel>
</Grid>
</Window>