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