55 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
66 xmlns : AvaloniaEdit =" clr-namespace:AvaloniaEdit;assembly=AvaloniaEdit"
77 mc : Ignorable =" d" d : DesignWidth =" 700" d : DesignHeight =" 500"
8+ xmlns : i =" clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
9+ xmlns : behaviors =" clr-namespace:SharpFM.App.Behaviors;assembly=SharpFM.App"
810 x : DataType =" vm:MainWindowViewModel"
911 x : Class =" SharpFM.App.MainWindow"
1012 Title =" SharpFM" >
1113 <Grid >
1214 <Grid .ColumnDefinitions>
1315 <ColumnDefinition Width =" 100" />
1416 <ColumnDefinition Width =" 200" />
15- <ColumnDefinition Width =" 300" />
16- <ColumnDefinition Width =" 300" />
17+ <ColumnDefinition Width =" *" />
1718 </Grid .ColumnDefinitions>
1819
19- <Button
20- Grid.Column=" 0"
21- Command =" {Binding PasteTextCommand}" >
22- Paste
20+ <StackPanel Grid.Column=" 0" >
21+ <Button Command =" {Binding NewEmptyItemCommand}" >
22+ New
2323 </Button >
2424
25+ <Button Command =" {Binding PasteTextCommand}" >
26+ Paste
27+ </Button >
28+ </StackPanel >
2529 <ListBox
2630 Grid.Column=" 1"
2731 ItemsSource =" {Binding Keys}"
4145 </ListBox .ItemTemplate>
4246 </ListBox >
4347
44- <StackPanel Grid.Column=" 2"
45- Grid.ColumnSpan=" 2" >
46-
47- <TextBox
48- Height =" 250"
49- Text =" {Binding SelectedClip.XmlData}" />
48+ <AvaloniaEdit : TextEditor
49+ Grid.Column=" 2"
50+ x : Name =" avaloniaEditor"
51+ SyntaxHighlighting =" Xml"
52+ WordWrap =" False"
53+ ShowLineNumbers =" True"
54+ FontFamily =" Cascadia Code,Consolas,Menlo,Monospace" >
55+ <i : Interaction .Behaviors>
56+ <behaviors : DocumentTextBindingBehavior Text =" {Binding SelectedClip.XmlData, Mode=TwoWay}" />
57+ </i : Interaction .Behaviors>
58+ </AvaloniaEdit : TextEditor >
5059
51- <AvaloniaEdit : TextEditor
52- Height =" 250"
53- x : Name =" avaloniaEditor"
54- ShowLineNumbers =" True"
55- FontFamily =" Cascadia Code,Consolas,Menlo,Monospace" />
56- </StackPanel >
5760 </Grid >
5861</Window >
0 commit comments