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"
7- 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" GlowBrush =" {DynamicResource AccentColorBrush}"
87 Title =" New" ShowTitleBar =" False" >
98 <controls : MetroWindow .Resources>
109 <ResourceDictionary >
1110 <ResourceDictionary .MergedDictionaries>
1211 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
1312 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
1413 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Colors.xaml" />
15- <ResourceDictionary
16- Source =" pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
14+ <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseDark.xaml" />
1715 <ResourceDictionary Source =" pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" />
1816 </ResourceDictionary .MergedDictionaries>
1917 </ResourceDictionary >
2018 </controls : MetroWindow .Resources>
2119 <Grid >
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"
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"
3624 Style =" {StaticResource SearchMetroTextBox}"
3725 controls:TextBoxHelper.ButtonCommand=" {Binding TextBoxButtonFileCmd, Mode=OneWay, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" />
38- <Button Name =" SaveButton" HorizontalAlignment =" Right" VerticalAlignment =" Bottom" Margin =" 0,0,5,5"
39- Content =" Save" Width =" 100" Click =" Button_Click" />
26+ <Button Name =" SaveButton" HorizontalAlignment =" Right" VerticalAlignment =" Bottom" Margin =" 0,0,5,5" Content =" Save" Width =" 100" Click =" Button_Click" />
4027 </Grid >
41- </controls : MetroWindow >
28+ </controls : MetroWindow >
0 commit comments