-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
40 lines (26 loc) · 1.2 KB
/
Copy pathMainWindow.xaml
File metadata and controls
40 lines (26 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<Window
x:Class="DialogHostStartupExample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:local="clr-namespace:DialogHostStartupExample"
Background="{DynamicResource MaterialDesign.Brush.Background}"
Foreground="{DynamicResource MaterialDesign.Brush.Foreground}"
Title="MainWindow" Height="450" Width="800"
>
<md:DialogHost
x:Name="MyDialogHost"
md:Identifier="{x:Static local:MainWindow.DialogHostIdentifier}"
CloseOnClickAway="True"
md:TransitionAssist.DisableTransitions="True"
>
<Button
HorizontalAlignment="Center"
VerticalAlignment="Center"
Content="Show Test View"
Command="{Binding RelativeSource={RelativeSource AncestorType={x:Type local:MainWindow}}, Path=ShowTestViewCommand}"
/>
</md:DialogHost>
</Window>