<controls:MetroWindow x:Class="LunarSF.SHomeWorkshop.LunarMarkdownEditor.ImagePreviewWindow" 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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:LunarSF.SHomeWorkshop.LunarMarkdownEditor" xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls" mc:Ignorable="d" Height="400" Width="500" Icon="App.png" BorderBrush="#FFBB6115" BorderThickness="1" GlowBrush="#FFBB6115" FontFamily="Simsun" TextOptions.TextFormattingMode="Display" Padding="0" Topmost="True" Title="{x:Static Member=local:Globals.AppName}" KeyDown="MetroWindow_KeyDown"> <Grid Background="WhiteSmoke"> <Grid.RowDefinitions> <RowDefinition Height="auto" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <TextBlock Name="tbImageTitle" HorizontalAlignment="Center" TextAlignment="Center" Grid.Row="0" FontWeight="Bold" Padding="0,10,0,10"> </TextBlock> <GridSplitter Height="4" Background="SaddleBrown" VerticalAlignment="Bottom" HorizontalAlignment="Stretch" Margin="0,2,0,-2"/> <Image Margin="10" Name="previewImage" Height="auto" Width="auto" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Source="App.png"></Image> </Grid> </controls:MetroWindow>