|
1 | | -<Window |
2 | | - x:Class="WinUICommunity_VS_Templates.MainWindow" |
3 | | - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
4 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
5 | | - xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
6 | | - xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
7 | | - xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" |
8 | | - Title="WinUICommunity Wizard" |
9 | | - Width="900" |
10 | | - Height="700" |
11 | | - ui:ThemeManager.IsThemeAware="True" |
12 | | - ui:TitleBar.ExtendViewIntoTitleBar="True" |
13 | | - ui:WindowHelper.FixMaximizedWindow="False" |
14 | | - ui:WindowHelper.SystemBackdropType="Mica" |
15 | | - ui:WindowHelper.UseModernWindowStyle="True" |
16 | | - Closing="Window_Closing" |
17 | | - ResizeMode="NoResize" |
18 | | - Topmost="False" |
19 | | - WindowStartupLocation="CenterScreen" |
20 | | - mc:Ignorable="d"> |
| 1 | +<Window x:Class="WinUICommunity_VS_Templates.MainWindow" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 5 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 6 | + xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" |
| 7 | + Title="WinUICommunity Wizard" |
| 8 | + Width="900" |
| 9 | + Height="700" |
| 10 | + ui:ThemeManager.IsThemeAware="True" |
| 11 | + ui:TitleBar.ExtendViewIntoTitleBar="True" |
| 12 | + ui:WindowHelper.FixMaximizedWindow="False" |
| 13 | + ui:WindowHelper.SystemBackdropType="Mica" |
| 14 | + ui:WindowHelper.UseModernWindowStyle="True" |
| 15 | + Closing="Window_Closing" |
| 16 | + ResizeMode="NoResize" |
| 17 | + Topmost="False" |
| 18 | + WindowStartupLocation="CenterScreen" |
| 19 | + mc:Ignorable="d"> |
21 | 20 | <Window.Resources> |
22 | 21 | <ResourceDictionary> |
23 | 22 | <ResourceDictionary.MergedDictionaries> |
|
39 | 38 | <ColumnDefinition /> |
40 | 39 | <ColumnDefinition Width="100" /> |
41 | 40 | </Grid.ColumnDefinitions> |
42 | | - <TextBlock |
43 | | - Margin="10,0" |
44 | | - VerticalAlignment="Center" |
45 | | - FontWeight="Bold" |
46 | | - Text="WinUICommunity Wizard" /> |
| 41 | + <TextBlock Margin="10,0" |
| 42 | + VerticalAlignment="Center" |
| 43 | + FontWeight="Bold" |
| 44 | + Text="WinUICommunity Wizard" /> |
47 | 45 | </Grid> |
48 | 46 |
|
49 | | - <ui:NavigationView |
50 | | - x:Name="NavigationView" |
51 | | - Grid.Row="1" |
52 | | - Margin="0,10,0,0" |
53 | | - IsBackButtonVisible="Collapsed" |
54 | | - IsPaneToggleButtonVisible="False" |
55 | | - OpenPaneLength="240" |
56 | | - PaneDisplayMode="Left" |
57 | | - SelectionChanged="NavigationView_SelectionChanged"> |
| 47 | + <ui:NavigationView x:Name="NavigationView" |
| 48 | + Grid.Row="1" |
| 49 | + Margin="0,10,0,0" |
| 50 | + IsBackButtonVisible="Collapsed" |
| 51 | + IsPaneToggleButtonVisible="False" |
| 52 | + OpenPaneLength="240" |
| 53 | + PaneDisplayMode="Left" |
| 54 | + SelectionChanged="NavigationView_SelectionChanged"> |
58 | 55 | <ui:NavigationView.Header> |
59 | | - <StackPanel HorizontalAlignment="Center" VerticalAlignment="Top"> |
| 56 | + <StackPanel HorizontalAlignment="Center" |
| 57 | + VerticalAlignment="Top"> |
60 | 58 | <Grid Margin="-50,-35,5,0"> |
61 | 59 | <Grid.ColumnDefinitions> |
62 | 60 | <ColumnDefinition /> |
63 | 61 | <ColumnDefinition /> |
64 | 62 | </Grid.ColumnDefinitions> |
65 | | - <ui:InfoBar |
66 | | - Title="Windows App SDK" |
67 | | - BorderThickness="1,1,0,1" |
68 | | - CornerRadius="4,0,0,4" |
69 | | - IsClosable="False" |
70 | | - IsOpen="True" |
71 | | - Message="Latest Stable" |
72 | | - Severity="Success" /> |
73 | | - <ui:InfoBar |
74 | | - Title="Build Tools" |
75 | | - Grid.Column="1" |
76 | | - BorderThickness="0,1,1,1" |
77 | | - CornerRadius="0,4,4,0" |
78 | | - IsClosable="False" |
79 | | - IsOpen="True" |
80 | | - Message="Latest Stable" |
81 | | - Severity="Success" /> |
| 63 | + <ui:InfoBar Title="Windows App SDK" |
| 64 | + BorderThickness="1,1,0,1" |
| 65 | + CornerRadius="4,0,0,4" |
| 66 | + IsClosable="False" |
| 67 | + IsOpen="True" |
| 68 | + Message="Latest Stable" |
| 69 | + Severity="Success" /> |
| 70 | + <ui:InfoBar Title="Build Tools" |
| 71 | + Grid.Column="1" |
| 72 | + BorderThickness="0,1,1,1" |
| 73 | + CornerRadius="0,4,4,0" |
| 74 | + IsClosable="False" |
| 75 | + IsOpen="True" |
| 76 | + Message="Latest Stable" |
| 77 | + Severity="Success" /> |
82 | 78 | </Grid> |
83 | | - <ComboBox |
84 | | - x:Name="cmbVersionMechanism" |
85 | | - MinWidth="250" |
86 | | - Margin="-50,10,5,0" |
87 | | - HorizontalAlignment="Left" |
88 | | - SelectedIndex="0" |
89 | | - SelectionChanged="cmbVersionMechanism_SelectionChanged"> |
90 | | - <ComboBoxItem |
91 | | - Content="Use Latest Stable Version" |
92 | | - Tag="Stable" |
93 | | - ToolTip="Latest Stable version will be install" /> |
94 | | - <ComboBoxItem |
95 | | - Content="Use Latest PreRelease Version" |
96 | | - Tag="PreRelease" |
97 | | - ToolTip="The latest stable version will always be installed" /> |
| 79 | + <ComboBox x:Name="cmbVersionMechanism" |
| 80 | + MinWidth="250" |
| 81 | + Margin="-50,10,5,0" |
| 82 | + HorizontalAlignment="Left" |
| 83 | + SelectedIndex="0" |
| 84 | + SelectionChanged="cmbVersionMechanism_SelectionChanged"> |
| 85 | + <ComboBoxItem Content="Use Latest Stable Version" |
| 86 | + Tag="Stable" |
| 87 | + ToolTip="Latest Stable version will be install" /> |
| 88 | + <ComboBoxItem Content="Use Latest PreRelease Version" |
| 89 | + Tag="PreRelease" |
| 90 | + ToolTip="The latest stable version will always be installed" /> |
98 | 91 | </ComboBox> |
99 | | - <StackPanel Margin="-50,10,5,0" Orientation="Horizontal"> |
100 | | - <TextBlock |
101 | | - Margin="5,5" |
102 | | - Style="{StaticResource BaseTextBlockStyle}" |
103 | | - Text="TargetFramework" /> |
104 | | - <ComboBox |
105 | | - x:Name="cmbNetVersion" |
106 | | - MinWidth="250" |
107 | | - SelectedIndex="0" |
108 | | - SelectionChanged="cmbNetVersion_SelectionChanged" |
109 | | - ToolTip="Choose .Net Version"> |
110 | | - <ComboBoxItem |
111 | | - Content=".Net 8.0 (Recommended)" |
112 | | - Tag="net8.0" |
113 | | - ToolTip=".Net 8.0 will be used." /> |
114 | | - <ComboBoxItem |
115 | | - Content=".Net 9.0 (RC)" |
116 | | - Tag="net9.0" |
117 | | - ToolTip=".Net 9.0 will be used." /> |
| 92 | + <StackPanel Margin="-50,10,5,0" |
| 93 | + Orientation="Horizontal"> |
| 94 | + <TextBlock Margin="5,5" |
| 95 | + Style="{StaticResource BaseTextBlockStyle}" |
| 96 | + Text="TargetFramework" /> |
| 97 | + <ComboBox x:Name="cmbNetVersion" |
| 98 | + MinWidth="250" |
| 99 | + SelectedIndex="0" |
| 100 | + SelectionChanged="cmbNetVersion_SelectionChanged" |
| 101 | + ToolTip="Choose .Net Version"> |
| 102 | + <ComboBoxItem Content=".Net 9.0 (Recommended)" |
| 103 | + Tag="net9.0" |
| 104 | + ToolTip=".Net 9.0 will be used." /> |
| 105 | + <ComboBoxItem Content=".Net 8.0" |
| 106 | + Tag="net8.0" |
| 107 | + ToolTip=".Net 8.0 will be used." /> |
118 | 108 | </ComboBox> |
119 | | - <ComboBox |
120 | | - x:Name="cmbTargetFrameworkVersion" |
121 | | - MinWidth="250" |
122 | | - Margin="5,0" |
123 | | - SelectedIndex="1" |
124 | | - SelectionChanged="cmbTargetFrameworkVersion_SelectionChanged" |
125 | | - ToolTip="Choose TargetFramework Version"> |
126 | | - <ComboBoxItem |
127 | | - Content="26100" |
128 | | - Tag="26100" |
129 | | - ToolTip="26100" /> |
130 | | - <ComboBoxItem |
131 | | - Content="22621 (Recommended)" |
132 | | - Tag="22621" |
133 | | - ToolTip="22621" /> |
134 | | - <ComboBoxItem |
135 | | - Content="22000" |
136 | | - Tag="22000" |
137 | | - ToolTip="22000" /> |
138 | | - <ComboBoxItem |
139 | | - Content="19041" |
140 | | - Tag="19041" |
141 | | - ToolTip="19041" /> |
| 109 | + <ComboBox x:Name="cmbTargetFrameworkVersion" |
| 110 | + MinWidth="250" |
| 111 | + Margin="5,0" |
| 112 | + SelectedIndex="1" |
| 113 | + SelectionChanged="cmbTargetFrameworkVersion_SelectionChanged" |
| 114 | + ToolTip="Choose TargetFramework Version"> |
| 115 | + <ComboBoxItem Content="26100" |
| 116 | + Tag="26100" |
| 117 | + ToolTip="26100" /> |
| 118 | + <ComboBoxItem Content="22621 (Recommended)" |
| 119 | + Tag="22621" |
| 120 | + ToolTip="22621" /> |
| 121 | + <ComboBoxItem Content="22000" |
| 122 | + Tag="22000" |
| 123 | + ToolTip="22000" /> |
| 124 | + <ComboBoxItem Content="19041" |
| 125 | + Tag="19041" |
| 126 | + ToolTip="19041" /> |
142 | 127 | </ComboBox> |
143 | 128 | </StackPanel> |
144 | 129 |
|
145 | | - <StackPanel Margin="-50,10,5,0" Orientation="Horizontal"> |
146 | | - <TextBlock |
147 | | - Margin="5,5" |
148 | | - Style="{StaticResource BaseTextBlockStyle}" |
149 | | - Text="UnPackaged Mode" /> |
150 | | - <ui:ToggleSwitch x:Name="tgUnPackaged" Toggled="tgUnPackaged_Toggled" /> |
| 130 | + <StackPanel Margin="-50,10,5,0" |
| 131 | + Orientation="Horizontal"> |
| 132 | + <TextBlock Margin="5,5" |
| 133 | + Style="{StaticResource BaseTextBlockStyle}" |
| 134 | + Text="UnPackaged Mode" /> |
| 135 | + <ui:ToggleSwitch x:Name="tgUnPackaged" |
| 136 | + Toggled="tgUnPackaged_Toggled" /> |
151 | 137 |
|
152 | | - <TextBlock |
153 | | - Margin="5,5" |
154 | | - Style="{StaticResource BaseTextBlockStyle}" |
155 | | - Text="Nullable" /> |
156 | | - <ui:ToggleSwitch |
157 | | - x:Name="tgNullable" |
158 | | - OffContent="disable" |
159 | | - OnContent="enable" |
160 | | - Toggled="tgNullable_Toggled" /> |
| 138 | + <TextBlock Margin="5,5" |
| 139 | + Style="{StaticResource BaseTextBlockStyle}" |
| 140 | + Text="Nullable" /> |
| 141 | + <ui:ToggleSwitch x:Name="tgNullable" |
| 142 | + OffContent="disable" |
| 143 | + OnContent="enable" |
| 144 | + Toggled="tgNullable_Toggled" /> |
161 | 145 | </StackPanel> |
162 | 146 |
|
163 | 147 | </StackPanel> |
164 | 148 | </ui:NavigationView.Header> |
165 | 149 |
|
166 | 150 | <ui:NavigationView.MenuItems> |
167 | | - <ui:NavigationViewItem |
168 | | - Content="Platform" |
169 | | - IsSelected="True" |
170 | | - Tag="PlatformPage"> |
| 151 | + <ui:NavigationViewItem Content="Platform" |
| 152 | + IsSelected="True" |
| 153 | + Tag="PlatformPage"> |
171 | 154 | <ui:NavigationViewItem.Icon> |
172 | 155 | <ui:SymbolIcon Symbol="Bookmarks" /> |
173 | 156 | </ui:NavigationViewItem.Icon> |
174 | 157 | </ui:NavigationViewItem> |
175 | | - <ui:NavigationViewItem Content="Files" Tag="FilePage"> |
| 158 | + <ui:NavigationViewItem Content="Files" |
| 159 | + Tag="FilePage"> |
176 | 160 | <ui:NavigationViewItem.Icon> |
177 | 161 | <ui:SymbolIcon Symbol="OpenFile" /> |
178 | 162 | </ui:NavigationViewItem.Icon> |
179 | 163 | </ui:NavigationViewItem> |
180 | | - <ui:NavigationViewItem Content="CSProject" Tag="CSProjectPage"> |
| 164 | + <ui:NavigationViewItem Content="CSProject" |
| 165 | + Tag="CSProjectPage"> |
181 | 166 | <ui:NavigationViewItem.Icon> |
182 | 167 | <ui:SymbolIcon Symbol="Tag" /> |
183 | 168 | </ui:NavigationViewItem.Icon> |
184 | 169 | </ui:NavigationViewItem> |
185 | | - <ui:NavigationViewItem Content="AppxManifest" Tag="AppxManifestPage"> |
| 170 | + <ui:NavigationViewItem Content="AppxManifest" |
| 171 | + Tag="AppxManifestPage"> |
186 | 172 | <ui:NavigationViewItem.Icon> |
187 | 173 | <ui:SymbolIcon Symbol="Permissions" /> |
188 | 174 | </ui:NavigationViewItem.Icon> |
189 | 175 | </ui:NavigationViewItem> |
190 | | - <ui:NavigationViewItem Content="Resource Dictionary" Tag="ResourcePage"> |
| 176 | + <ui:NavigationViewItem Content="Resource Dictionary" |
| 177 | + Tag="ResourcePage"> |
191 | 178 | <ui:NavigationViewItem.Icon> |
192 | 179 | <ui:SymbolIcon Symbol="List" /> |
193 | 180 | </ui:NavigationViewItem.Icon> |
194 | 181 | </ui:NavigationViewItem> |
195 | | - <ui:NavigationViewItem Content="Libraries" Tag="LibrariesPage"> |
| 182 | + <ui:NavigationViewItem Content="Libraries" |
| 183 | + Tag="LibrariesPage"> |
196 | 184 | <ui:NavigationViewItem.Icon> |
197 | 185 | <ui:SymbolIcon Symbol="Library" /> |
198 | 186 | </ui:NavigationViewItem.Icon> |
199 | 187 | </ui:NavigationViewItem> |
200 | | - <ui:NavigationViewItem |
201 | | - x:Name="nviPage" |
202 | | - Content="Pages" |
203 | | - Tag="PagesPages"> |
| 188 | + <ui:NavigationViewItem x:Name="nviPage" |
| 189 | + Content="Pages" |
| 190 | + Tag="PagesPages"> |
204 | 191 | <ui:NavigationViewItem.Icon> |
205 | 192 | <ui:SymbolIcon Symbol="Document" /> |
206 | 193 | </ui:NavigationViewItem.Icon> |
|
209 | 196 |
|
210 | 197 | <ui:Frame x:Name="frame" /> |
211 | 198 | </ui:NavigationView> |
212 | | - <StatusBar |
213 | | - Grid.Row="2" |
214 | | - Padding="5" |
215 | | - HorizontalAlignment="Stretch" |
216 | | - HorizontalContentAlignment="Right" |
217 | | - Background="Transparent"> |
218 | | - <Button |
219 | | - MinWidth="200" |
220 | | - Margin="10,0" |
221 | | - Click="btnCancel_Click" |
222 | | - Content="Cancel [Esc]" |
223 | | - IsCancel="True" /> |
224 | | - <Button |
225 | | - MinWidth="200" |
226 | | - Click="btnCreate_Click" |
227 | | - Content="Create Project [Enter]" |
228 | | - IsDefault="True" |
229 | | - Style="{StaticResource AccentButtonStyle}" /> |
| 199 | + <StatusBar Grid.Row="2" |
| 200 | + Padding="5" |
| 201 | + HorizontalAlignment="Stretch" |
| 202 | + HorizontalContentAlignment="Right" |
| 203 | + Background="Transparent"> |
| 204 | + <Button MinWidth="200" |
| 205 | + Margin="10,0" |
| 206 | + Click="btnCancel_Click" |
| 207 | + Content="Cancel [Esc]" |
| 208 | + IsCancel="True" /> |
| 209 | + <Button MinWidth="200" |
| 210 | + Click="btnCreate_Click" |
| 211 | + Content="Create Project [Enter]" |
| 212 | + IsDefault="True" |
| 213 | + Style="{StaticResource AccentButtonStyle}" /> |
230 | 214 | </StatusBar> |
231 | 215 | </Grid> |
232 | 216 | </Window> |
0 commit comments