|
7 | 7 | xmlns:local="clr-namespace:MetroDemo" |
8 | 8 | xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls" |
9 | 9 | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
10 | | - xmlns:theming="urn:controlzex" |
| 10 | + xmlns:controlzEx="urn:controlzex" |
11 | 11 | Title="MahApps.Metro - Demo Application" |
12 | 12 | Width="1024" |
13 | 13 | Height="768" |
|
18 | 18 | d:DesignWidth="800" |
19 | 19 | mah:DialogParticipation.Register="{Binding}" |
20 | 20 | Closing="MetroWindow_Closing" |
21 | | - GlowBrush="{DynamicResource MahApps.Brushes.Accent}" |
| 21 | + GlowColor="{DynamicResource MahApps.Colors.Accent}" |
22 | 22 | Icon="mahapps.metro.logo2.ico" |
23 | | - NonActiveGlowBrush="#CDFF0000" |
| 23 | + NonActiveGlowColor="#CDFF0000" |
24 | 24 | ResizeMode="CanResizeWithGrip" |
25 | 25 | ShowIconOnTitleBar="True" |
26 | 26 | WindowStartupLocation="CenterScreen" |
|
37 | 37 | <ResourceDictionary> |
38 | 38 | <ObjectDataProvider x:Key="SyncModePreferenceEnumValues" |
39 | 39 | MethodName="GetValues" |
40 | | - ObjectType="{x:Type theming:ThemeSyncMode}"> |
| 40 | + ObjectType="{x:Type controlzEx:ThemeSyncMode}"> |
41 | 41 | <ObjectDataProvider.MethodParameters> |
42 | | - <x:Type TypeName="theming:ThemeSyncMode" /> |
| 42 | + <x:Type TypeName="controlzEx:ThemeSyncMode" /> |
43 | 43 | </ObjectDataProvider.MethodParameters> |
44 | 44 | </ObjectDataProvider> |
45 | 45 |
|
|
106 | 106 | Style="{DynamicResource MahApps.Styles.Button.Dialogs}" /> |
107 | 107 | </StackPanel> |
108 | 108 | </UserControl> |
| 109 | + |
| 110 | + <ObjectDataProvider x:Key="CornerPreferenceEnumValues" |
| 111 | + MethodName="GetValues" |
| 112 | + ObjectType="{x:Type controlzEx:WindowCornerPreference}"> |
| 113 | + <ObjectDataProvider.MethodParameters> |
| 114 | + <x:Type TypeName="controlzEx:WindowCornerPreference" /> |
| 115 | + </ObjectDataProvider.MethodParameters> |
| 116 | + </ObjectDataProvider> |
109 | 117 | </ResourceDictionary> |
110 | 118 | </Window.Resources> |
111 | 119 |
|
|
168 | 176 | ItemsSource="{Binding Source={StaticResource SyncModePreferenceEnumValues}}" /> |
169 | 177 | <MenuItem Header="Use HSL colors?" |
170 | 178 | IsCheckable="True" |
171 | | - IsChecked="{Binding Options.UseHSL, Source={x:Static theming:RuntimeThemeGenerator.Current}, Mode=TwoWay}" /> |
| 179 | + IsChecked="{Binding Options.UseHSL, Source={x:Static controlzEx:RuntimeThemeGenerator.Current}, Mode=TwoWay}" /> |
172 | 180 |
|
173 | 181 | <MenuItem Command="{Binding DataContext.SyncThemeNowCommand, RelativeSource={RelativeSource AncestorType=Window}}" Header="Sync now" /> |
174 | 182 | </MenuItem> |
|
218 | 226 | <MenuItem Command="{Binding ShowCustomDialogCommand}" Header="Show CustomDialog via VM" /> |
219 | 227 | </MenuItem> |
220 | 228 | <MenuItem Header="Window"> |
| 229 | + <MenuItem Header="Chrome"> |
| 230 | + <MenuItem> |
| 231 | + <MenuItem.Template> |
| 232 | + <ControlTemplate> |
| 233 | + <StackPanel Orientation="Horizontal"> |
| 234 | + <Label Content="CornerPreference" /> |
| 235 | + <ComboBox VerticalAlignment="Center" |
| 236 | + ItemsSource="{Binding Source={StaticResource CornerPreferenceEnumValues}}" |
| 237 | + SelectedItem="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type mah:MetroWindow}}, Path=CornerPreference, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" /> |
| 238 | + </StackPanel> |
| 239 | + </ControlTemplate> |
| 240 | + </MenuItem.Template> |
| 241 | + </MenuItem> |
| 242 | + </MenuItem> |
| 243 | + <MenuItem Header="Glow"> |
| 244 | + <MenuItem Header="PreferDWMBorderColor" |
| 245 | + IsCheckable="True" |
| 246 | + IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type mah:MetroWindow}}, Path=PreferDWMBorderColor}" /> |
| 247 | + <MenuItem Header="DWMSupportsBorderColor" |
| 248 | + IsEnabled="False" |
| 249 | + IsCheckable="True" |
| 250 | + IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type mah:MetroWindow}}, Path=DWMSupportsBorderColor}" /> |
| 251 | + </MenuItem> |
221 | 252 | <MenuItem Header="ShowTitleBar" |
222 | 253 | IsCheckable="True" |
223 | 254 | IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type mah:MetroWindow}}, Path=ShowTitleBar}" /> |
|
0 commit comments