11<controls : MetroWindow x : Class =" Spedit.UI.Windows.NewFileWindow"
2- xmlns : controls =" http://metro.mahapps.com/winfx/xaml/controls"
3- xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4- xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
5- xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6- Width =" 800" Height =" 500" ResizeMode =" NoResize" WindowStartupLocation =" CenterOwner" GlowBrush =" {DynamicResource AccentColorBrush}"
2+ xmlns : controls =" http://metro.mahapps.com/winfx/xaml/controls"
3+ xmlns =" http://schemas.microsoft.com/winfx/2006/xaml/presentation"
4+ xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
5+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
6+ Width =" 800" Height =" 500" ResizeMode =" NoResize" WindowStartupLocation =" CenterOwner"
7+ GlowBrush =" {DynamicResource AccentColorBrush}"
78 Title =" New" ShowTitleBar =" False" >
89 <controls : MetroWindow .Resources>
910 <ResourceDictionary >
1011 <ResourceDictionary .MergedDictionaries>
1112 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
1213 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
1314 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
14- <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
15+ <ResourceDictionary
16+ Source =" pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
1517 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" />
1618 </ResourceDictionary .MergedDictionaries>
1719 </ResourceDictionary >
1820 </controls : MetroWindow .Resources>
1921 <Grid >
20- <ListBox Name =" TemplateListBox" HorizontalAlignment =" Left" VerticalAlignment =" Stretch" Width =" 250" Margin =" 0,0,0,50" SelectionChanged =" TemplateListBox_SelectionChanged" />
21- <TextBlock Name =" PreviewBlock" HorizontalAlignment =" Left" VerticalAlignment =" Top" Margin =" 260,10,0,0" Text =" Preview:" IsHitTestVisible =" False" />
22- <TextBox Name =" PrevieBox" HorizontalAlignment =" Stretch" VerticalAlignment =" Stretch" Margin =" 260,30,5,50" IsReadOnly =" True" />
23- <TextBox Name =" PathBox" HorizontalAlignment =" Stretch" VerticalAlignment =" Bottom" Margin =" 5,0,120,5"
22+ <ListBox Name =" TemplateListBox" HorizontalAlignment =" Left" VerticalAlignment =" Stretch" Width =" 250"
23+ Margin =" 0,0,0,50" SelectionChanged =" TemplateListBox_SelectionChanged" >
24+ <ListBox .ItemContainerStyle>
25+ <Style TargetType =" {x:Type ListBoxItem}" >
26+ <Setter Property =" HorizontalContentAlignment" Value =" Left" />
27+ <Setter Property =" VerticalContentAlignment" Value =" Center" />
28+ </Style >
29+ </ListBox .ItemContainerStyle>
30+ </ListBox >
31+ <TextBlock Name =" PreviewBlock" HorizontalAlignment =" Left" VerticalAlignment =" Top" Margin =" 260,10,0,0"
32+ Text =" Preview:" IsHitTestVisible =" False" />
33+ <TextBox Name =" PrevieBox" HorizontalAlignment =" Stretch" VerticalAlignment =" Stretch" Margin =" 260,30,5,50"
34+ IsReadOnly =" True" />
35+ <TextBox Name =" PathBox" HorizontalAlignment =" Stretch" VerticalAlignment =" Bottom" Margin =" 5,0,120,5"
2436 Style =" {StaticResource SearchMetroTextBox}"
2537 controls:TextBoxHelper.ButtonCommand=" {Binding TextBoxButtonFileCmd, Mode=OneWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" />
26- <Button Name =" SaveButton" HorizontalAlignment =" Right" VerticalAlignment =" Bottom" Margin =" 0,0,5,5" Content =" Save" Width =" 100" Click =" Button_Click" />
38+ <Button Name =" SaveButton" HorizontalAlignment =" Right" VerticalAlignment =" Bottom" Margin =" 0,0,5,5"
39+ Content =" Save" Width =" 100" Click =" Button_Click" />
2740 </Grid >
28- </controls : MetroWindow >
41+ </controls : MetroWindow >
0 commit comments