10
10
d : DesignWidth =" 800"
11
11
x : DataType =" vms:CheckUpdateViewModel"
12
12
mc : Ignorable =" d" >
13
- <Button
14
- Classes =" Tertiary"
15
- FontWeight =" Regular"
16
- Theme =" {DynamicResource BorderlessButton}" >
17
- <Button .Content>
18
- <TextBlock Text =" {x:Static resx:ResUI.menuCheckUpdate}" />
19
- </Button .Content>
20
- <Button .Flyout>
21
- <Flyout Placement =" RightEdgeAlignedTop" >
22
- <DockPanel Margin =" 16" >
23
- <StackPanel
24
- HorizontalAlignment =" Right"
25
- Classes =" Margin8"
26
- DockPanel.Dock=" Bottom"
27
- Orientation =" Horizontal" >
28
13
29
- <TextBlock
30
- HorizontalAlignment =" Left"
31
- VerticalAlignment =" Center"
32
- Classes =" Margin8"
33
- Text =" {x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" />
34
- <ToggleSwitch
35
- x : Name =" togEnableCheckPreReleaseUpdate"
36
- HorizontalAlignment =" Left"
37
- Classes =" Margin8" />
14
+ <DockPanel Margin =" 16" >
15
+ <StackPanel
16
+ HorizontalAlignment =" Right"
17
+ Classes =" Margin8"
18
+ DockPanel.Dock=" Bottom"
19
+ Orientation =" Horizontal" >
20
+
21
+ <TextBlock
22
+ HorizontalAlignment =" Left"
23
+ VerticalAlignment =" Center"
24
+ Classes =" Margin8"
25
+ Text =" {x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" />
26
+ <ToggleSwitch
27
+ x : Name =" togEnableCheckPreReleaseUpdate"
28
+ HorizontalAlignment =" Left"
29
+ Classes =" Margin8" />
38
30
39
- <Button
40
- x : Name =" btnCheckUpdate"
41
- Width =" 100"
42
- Classes =" Margin8"
43
- Content =" {x:Static resx:ResUI.menuCheckUpdate}" />
44
- </StackPanel >
31
+ <Button
32
+ x : Name =" btnCheckUpdate"
33
+ Width =" 100"
34
+ Classes =" Margin8"
35
+ Content =" {x:Static resx:ResUI.menuCheckUpdate}" />
36
+ </StackPanel >
37
+
38
+ <StackPanel >
39
+ <ListBox
40
+ x : Name =" lstCheckUpdates"
41
+ BorderThickness =" 1"
42
+ ItemsSource =" {Binding CheckUpdateItems}" >
43
+ <ItemsControl .ItemsPanel>
44
+ <ItemsPanelTemplate >
45
+ <StackPanel Orientation =" Vertical" />
46
+ </ItemsPanelTemplate >
47
+ </ItemsControl .ItemsPanel>
48
+ <ItemsControl .ItemTemplate>
49
+ <DataTemplate >
50
+ <Border
51
+ Width =" 500"
52
+ Height =" 80"
53
+ Margin =" 0"
54
+ VerticalAlignment =" Center"
55
+ Theme =" {StaticResource CardBorder}" >
56
+ <Grid >
57
+ <Grid .RowDefinitions>
58
+ <RowDefinition Height =" Auto" />
59
+ </Grid .RowDefinitions>
60
+ <Grid .ColumnDefinitions>
61
+ <ColumnDefinition Width =" 1*" />
62
+ <ColumnDefinition Width =" 1*" />
63
+ <ColumnDefinition Width =" 3*" />
64
+ </Grid .ColumnDefinitions>
65
+ <ToggleSwitch
66
+ x : Name =" togAutoRefresh"
67
+ Grid.Column=" 0"
68
+ Margin =" 8"
69
+ HorizontalAlignment =" Left"
70
+ VerticalAlignment =" Center"
71
+ IsChecked =" {Binding isSelected}" />
72
+ <TextBlock
73
+ Grid.Column=" 1"
74
+ VerticalAlignment =" Center"
75
+ Text =" {Binding coreType}" />
76
+ <TextBlock
77
+ Grid.Column=" 2"
78
+ VerticalAlignment =" Center"
79
+ Text =" {Binding remarks}"
80
+ TextWrapping =" WrapWithOverflow" />
81
+ </Grid >
82
+ </Border >
83
+ </DataTemplate >
84
+ </ItemsControl .ItemTemplate>
85
+ </ListBox >
86
+ </StackPanel >
87
+ </DockPanel >
45
88
46
- <StackPanel >
47
- <ListBox
48
- x : Name =" lstCheckUpdates"
49
- BorderThickness =" 1"
50
- ItemsSource =" {Binding CheckUpdateItems}" >
51
- <ItemsControl .ItemsPanel>
52
- <ItemsPanelTemplate >
53
- <StackPanel Orientation =" Vertical" />
54
- </ItemsPanelTemplate >
55
- </ItemsControl .ItemsPanel>
56
- <ItemsControl .ItemTemplate>
57
- <DataTemplate >
58
- <Border
59
- Width =" 500"
60
- Height =" 80"
61
- Margin =" 0"
62
- VerticalAlignment =" Center"
63
- Theme =" {StaticResource CardBorder}" >
64
- <Grid >
65
- <Grid .RowDefinitions>
66
- <RowDefinition Height =" Auto" />
67
- </Grid .RowDefinitions>
68
- <Grid .ColumnDefinitions>
69
- <ColumnDefinition Width =" 1*" />
70
- <ColumnDefinition Width =" 1*" />
71
- <ColumnDefinition Width =" 3*" />
72
- </Grid .ColumnDefinitions>
73
- <ToggleSwitch
74
- x : Name =" togAutoRefresh"
75
- Grid.Column=" 0"
76
- Margin =" 8"
77
- HorizontalAlignment =" Left"
78
- VerticalAlignment =" Center"
79
- IsChecked =" {Binding isSelected}" />
80
- <TextBlock
81
- Grid.Column=" 1"
82
- VerticalAlignment =" Center"
83
- Text =" {Binding coreType}" />
84
- <TextBlock
85
- Grid.Column=" 2"
86
- VerticalAlignment =" Center"
87
- Text =" {Binding remarks}"
88
- TextWrapping =" WrapWithOverflow" />
89
- </Grid >
90
- </Border >
91
- </DataTemplate >
92
- </ItemsControl .ItemTemplate>
93
- </ListBox >
94
- </StackPanel >
95
- </DockPanel >
96
- </Flyout >
97
- </Button .Flyout>
98
- </Button >
99
89
</UserControl >
0 commit comments