Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<Window x:Class="MaterialDesign.Dialog.Example.Views.Shell"
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"
xmlns:local="clr-namespace:MaterialDesign.Dialog.Example.Views"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:viewModels="clr-namespace:MaterialDesign.Dialog.Example.ViewModels"
x:Name="window"
Title="Shell"
Width="800"
Height="450"
d:DataContext="{d:DesignInstance {x:Type viewModels:ShellViewModel},
IsDesignTimeCreatable=True}"
SnapsToDevicePixels="True"
UseLayoutRounding="True"
mc:Ignorable="d">
<Window.Resources>
<system:Double x:Key="CaptionHeight">40</system:Double>
</Window.Resources>
<WindowChrome.WindowChrome>
<WindowChrome CaptionHeight="{StaticResource CaptionHeight}"
GlassFrameThickness="1"
ResizeBorderThickness="3" />
</WindowChrome.WindowChrome>
<Grid x:Name="LayoutRoot">
<materialDesign:DialogHost Identifier="MessageDialogHost" />
</Grid>
</Window>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment