Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Iyemon-018/17d320f707bb8bcf5bd92f621716c62c to your computer and use it in GitHub Desktop.
Save Iyemon-018/17d320f707bb8bcf5bd92f621716c62c to your computer and use it in GitHub Desktop.
<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