1- <Window xmlns =" https://github.com/avaloniaui"
1+ <Window
2+ x : Class =" SharpFM.App.MainWindow"
3+ xmlns =" https://github.com/avaloniaui"
24 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
3- xmlns : vm =" using:SharpFM.App.ViewModels"
4- xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
5- xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
65 xmlns : AvaloniaEdit =" clr-namespace:AvaloniaEdit;assembly=AvaloniaEdit"
7- mc : Ignorable =" d" d : DesignWidth =" 700" d : DesignHeight =" 500"
8- Width =" 700" Height =" 500"
9- xmlns : i =" clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
106 xmlns : behaviors =" clr-namespace:SharpFM.App.Behaviors;assembly=SharpFM.App"
7+ xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
8+ xmlns : i =" clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
9+ xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
10+ xmlns : vm =" using:SharpFM.App.ViewModels"
11+ Title =" SharpFM"
12+ Width =" 700"
13+ Height =" 500"
14+ d : DesignHeight =" 500"
15+ d : DesignWidth =" 700"
1116 x : DataType =" vm:MainWindowViewModel"
12- x : Class =" SharpFM.App.MainWindow"
13- Title =" SharpFM" >
17+ mc : Ignorable =" d" >
1418 <DockPanel >
1519 <Menu DockPanel.Dock=" Top" >
1620 <MenuItem Header =" _File" >
17- <MenuItem Header =" _New"
18- Command =" {Binding NewEmptyItemCommand}" />
19- <Separator />
20- <MenuItem Header =" _Exit" Command =" {Binding ExitApplicationCommand}" />
21+ <MenuItem Command =" {Binding NewEmptyItemCommand}" Header =" _New" />
22+ <Separator />
23+ <MenuItem Command =" {Binding ExitApplicationCommand}" Header =" _Exit" />
2124 </MenuItem >
2225 <MenuItem Header =" _Edit" >
23- <MenuItem
24- Header =" Copy"
25- Command =" {Binding CopySelectedToClipCommand}" />
26- <MenuItem
27- Header =" Paste"
28- Command =" {Binding PasteTextCommand}" />
26+ <MenuItem Command =" {Binding CopySelectedToClipCommand}" Header =" Copy" />
27+ <MenuItem Command =" {Binding PasteTextCommand}" Header =" Paste" />
2928 </MenuItem >
3029 <MenuItem Header =" Transform" >
31- <MenuItem Header =" Copy as C# Class" Command = " {Binding CopyAsClassCommand} " />
30+ <MenuItem Command = " {Binding CopyAsClassCommand} " Header =" Copy as C# Class" />
3231 </MenuItem >
3332 </Menu >
34- <TextBlock />
33+ <TextBlock />
3534 <Grid >
36- <Grid .ColumnDefinitions>
37- <ColumnDefinition Width =" 225" />
38- <ColumnDefinition Width =" *" />
39- </Grid .ColumnDefinitions>
35+ <Grid .ColumnDefinitions>
36+ <ColumnDefinition Width =" 225" />
37+ <ColumnDefinition Width =" *" />
38+ </Grid .ColumnDefinitions>
4039
41- <ListBox
42- Grid.Column=" 0"
43- ItemsSource =" {Binding Keys}"
44- SelectedItem =" {Binding SelectedClip}" >
45- <ListBox .ItemTemplate>
46- <DataTemplate >
47- <StackPanel Margin =" 0,8" >
48- <TextBox Text =" {Binding Name, Mode=TwoWay}" Margin =" 0" />
49- <ComboBox
50- ItemsSource =" {Binding ClipTypes}"
51- SelectedValue =" {Binding ClipboardFormat, Mode=TwoWay}"
52- SelectedValueBinding =" {Binding KeyId}"
53- DisplayMemberBinding =" {Binding DisplayName}"
54- >
55- </ComboBox >
56- <TextBlock Text =" {Binding ClipboardFormat}" MaxLines =" 1" />
57- </StackPanel >
58- </DataTemplate >
59- </ListBox .ItemTemplate>
60- </ListBox >
40+ <ListBox
41+ Grid.Column=" 0"
42+ ItemsSource =" {Binding Keys}"
43+ SelectedItem =" {Binding SelectedClip}" >
44+ <ListBox .ItemTemplate>
45+ <DataTemplate >
46+ <StackPanel Margin =" 0,8" >
47+ <TextBox Margin =" 0" Text =" {Binding Name, Mode=TwoWay}" />
48+ <ComboBox
49+ DisplayMemberBinding =" {Binding DisplayName}"
50+ ItemsSource =" {Binding ClipTypes}"
51+ SelectedValue =" {Binding ClipboardFormat, Mode=TwoWay}"
52+ SelectedValueBinding =" {Binding KeyId}" />
53+ <TextBlock MaxLines =" 1" Text =" {Binding ClipboardFormat}" />
54+ </StackPanel >
55+ </DataTemplate >
56+ </ListBox .ItemTemplate>
57+ </ListBox >
6158
62- <AvaloniaEdit : TextEditor
63- Grid.Column= " 1 "
64- x : Name = " avaloniaEditor "
65- SyntaxHighlighting = " Xml "
66- WordWrap = " False "
67- ShowLineNumbers = " True "
68- FontFamily = " Cascadia Code,Consolas,Menlo,Monospace " >
69- <i : Interaction .Behaviors>
70- <behaviors : DocumentTextBindingBehavior Text =" {Binding SelectedClip.XmlData, Mode=TwoWay}" />
71- </i : Interaction .Behaviors>
72- </AvaloniaEdit : TextEditor >
59+ <AvaloniaEdit : TextEditor
60+ x : Name = " avaloniaEditor "
61+ Grid.Column= " 1 "
62+ FontFamily = " Cascadia Code,Consolas,Menlo,Monospace "
63+ ShowLineNumbers = " True "
64+ SyntaxHighlighting = " Xml "
65+ WordWrap = " False " >
66+ <i : Interaction .Behaviors>
67+ <behaviors : DocumentTextBindingBehavior Text =" {Binding SelectedClip.XmlData, Mode=TwoWay}" />
68+ </i : Interaction .Behaviors>
69+ </AvaloniaEdit : TextEditor >
7370
74- </Grid >
71+ </Grid >
7572 </DockPanel >
76-
73+
7774</Window >
0 commit comments