|
80 | 80 | <Setter Property="Header" Value="{Binding Mode=OneTime}" /> |
81 | 81 | </Style> |
82 | 82 |
|
83 | | - <UserControl x:Key="CustomDialogTest" x:Name="CustomDialogTest" |
| 83 | + <UserControl x:Key="CustomDialogTest" |
| 84 | + x:Name="CustomDialogTest" |
84 | 85 | MinHeight="200"> |
85 | 86 |
|
86 | 87 | <TextBlock x:Name="MessageTextBlock" Text="Message shown by this custom Dialog." /> |
|
90 | 91 | <UserControl x:Key="CustomCloseDialogTest" x:Name="CustomCloseDialogTest"> |
91 | 92 |
|
92 | 93 | <StackPanel> |
93 | | - <TextBlock Text="This dialog allows arbitrary content. You have to close it yourself by clicking the close button below." |
94 | | - Height="30" |
95 | | - Margin="0,4" |
| 94 | + <TextBlock Height="30" |
| 95 | + Margin="0 4" |
| 96 | + Text="This dialog allows arbitrary content. You have to close it yourself by clicking the close button below." |
96 | 97 | TextWrapping="Wrap" /> |
97 | | - <Button Content="Close Me!" |
98 | | - Click="CloseCustomDialog" |
| 98 | + <Button Click="CloseCustomDialog" |
| 99 | + Content="Close Me!" |
99 | 100 | Style="{DynamicResource MahApps.Styles.Button.Dialogs}" /> |
100 | 101 | </StackPanel> |
101 | 102 |
|
|
116 | 117 |
|
117 | 118 | <mah:MetroWindow.RightWindowCommands> |
118 | 119 | <mah:WindowCommands ShowLastSeparator="False"> |
119 | | - <Button Content="Flyouts" |
120 | | - Click="LaunchFlyoutDemo" |
| 120 | + <Button Click="LaunchFlyoutDemo" |
| 121 | + Content="Flyouts" |
121 | 122 | ToolTip="Flyouts demo window" /> |
122 | | - <Button Content="IconPacks" |
123 | | - Click="LaunchIcons" |
| 123 | + <Button Click="LaunchIcons" |
| 124 | + Content="IconPacks" |
124 | 125 | ToolTip="All MahApp icons" /> |
125 | | - <Button Content="VS" |
126 | | - Click="LaunchVisualStudioDemo" |
| 126 | + <Button Click="LaunchVisualStudioDemo" |
| 127 | + Content="VS" |
127 | 128 | ToolTip="Visual Studio style demo" /> |
128 | | - <Button Content="Clean" |
129 | | - Click="LauchCleanDemo" |
| 129 | + <Button Click="LauchCleanDemo" |
| 130 | + Content="Clean" |
130 | 131 | ToolTip="Clean window style demo" /> |
131 | | - <Button Content="Interop" |
132 | | - Click="InteropDemo" |
| 132 | + <Button Click="InteropDemo" |
| 133 | + Content="Interop" |
133 | 134 | ToolTip="The interop demo" /> |
134 | | - <Button Content="Navigation" |
135 | | - Click="LaunchNavigationDemo" |
| 135 | + <Button Click="LaunchNavigationDemo" |
| 136 | + Content="Navigation" |
136 | 137 | ToolTip="Window navigation demo" /> |
137 | 138 | <ToggleButton Content="Confirm quit" |
138 | 139 | IsChecked="{Binding QuitConfirmationEnabled}" |
|
195 | 196 | <MenuItem Command="{Binding ShowInputDialogCommand}" Header="Show InputDialog via VM" /> |
196 | 197 | <MenuItem Command="{Binding ShowLoginDialogCommand}" Header="Show LoginDialog via VM ..." /> |
197 | 198 | <MenuItem Header="Show MessageDialog via VM"> |
198 | | - <MenuItem Header="... from Main Thread" |
199 | | - Command="{Binding ShowMessageDialogCommand}" |
200 | | - CommandParameter="DISPATCHER_THREAD" /> |
201 | | - <MenuItem Header="... from Background Thread" |
202 | | - Command="{Binding ShowMessageDialogCommand}" |
203 | | - CommandParameter="BACKGROUND_THREAD" /> |
| 199 | + <MenuItem Command="{Binding ShowMessageDialogCommand}" |
| 200 | + CommandParameter="DISPATCHER_THREAD" |
| 201 | + Header="... from Main Thread" /> |
| 202 | + <MenuItem Command="{Binding ShowMessageDialogCommand}" |
| 203 | + CommandParameter="BACKGROUND_THREAD" |
| 204 | + Header="... from Background Thread" /> |
204 | 205 | </MenuItem> |
205 | 206 |
|
206 | 207 | <MenuItem Command="{Binding ShowProgressDialogCommand}" Header="Show ProgressDialog via VM" /> |
|
229 | 230 | <MenuItem Click="MenuWindowWithShadowOnClick" Header="Window with drop shadow" /> |
230 | 231 | <MenuItem Click="LaunchSizeToContentDemo" Header="Window with SizeToContent" /> |
231 | 232 | <Separator /> |
232 | | - <MenuItem x:Name="ShowSeparatorsMI" Header="ShowSeparators (RightWindowCommands)" |
| 233 | + <MenuItem x:Name="ShowSeparatorsMI" |
| 234 | + Header="ShowSeparators (RightWindowCommands)" |
233 | 235 | IsCheckable="True" |
234 | 236 | IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type mah:MetroWindow}}, Path=RightWindowCommands.ShowSeparators}" /> |
235 | 237 | <MenuItem Header="ShowLastSeparator in (RightWindowCommands)" |
236 | 238 | IsCheckable="True" |
237 | 239 | IsChecked="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type mah:MetroWindow}}, Path=RightWindowCommands.ShowLastSeparator}" |
238 | 240 | IsEnabled="{Binding ElementName=ShowSeparatorsMI, Path=IsChecked, Mode=OneWay}" /> |
239 | 241 | <Separator /> |
240 | | - <MenuItem Header="Window icon: scale down larger frame" |
241 | | - Command="{Binding ToggleIconScalingCommand}" |
| 242 | + <MenuItem Command="{Binding ToggleIconScalingCommand}" |
242 | 243 | CommandParameter="{x:Static mah:MultiFrameImageMode.ScaleDownLargerFrame}" |
| 244 | + Header="Window icon: scale down larger frame" |
243 | 245 | IsCheckable="True" |
244 | 246 | IsChecked="{Binding IsScaleDownLargerFrame, Mode=OneWay}" /> |
245 | | - <MenuItem Header="Window icon: no scale, smaller frame" |
246 | | - Command="{Binding ToggleIconScalingCommand}" |
| 247 | + <MenuItem Command="{Binding ToggleIconScalingCommand}" |
247 | 248 | CommandParameter="{x:Static mah:MultiFrameImageMode.NoScaleSmallerFrame}" |
| 249 | + Header="Window icon: no scale, smaller frame" |
248 | 250 | IsCheckable="True" |
249 | 251 | IsChecked="{Binding IsNoScaleSmallerFrame, Mode=OneWay}" /> |
250 | 252 | <Separator /> |
|
331 | 333 | </TabItem> |
332 | 334 |
|
333 | 335 | <TabItem Header="MultiSelectionComboBox"> |
334 | | - <exampleViews:MultiSelectionComboBoxExample/> |
| 336 | + <exampleViews:MultiSelectionComboBoxExample /> |
335 | 337 | </TabItem> |
336 | 338 |
|
337 | 339 | <TabItem Header="others"> |
|
0 commit comments