22 xmlns : x =" http://schemas.microsoft.com/winfx/2006/xaml"
33 xmlns : d =" http://schemas.microsoft.com/expression/blend/2008"
44 xmlns : mc =" http://schemas.openxmlformats.org/markup-compatibility/2006"
5- mc : Ignorable =" d" d : DesignWidth =" 800" d : DesignHeight =" 450"
5+ mc : Ignorable =" d"
6+ d : DesignWidth =" 800"
7+ d : DesignHeight =" 450"
68 x : Class =" SudInfo.Avalonia.Views.Windows.AppWindow"
79 Title =" Приложение"
810 xmlns : viewModels =" clr-namespace:SudInfo.Avalonia.ViewModels.WindowViewModels;assembly=SudInfo.Avalonia"
1416 CanResize =" False"
1517 Width =" 600"
1618 Height =" 400" >
17- <StackPanel Margin =" 10"
18- Spacing =" 5" >
19- <TextBox Text =" {Binding AppEntity.Name}"
20- Watermark =" Название" />
21- <TextBox Text =" {Binding AppEntity.Version}"
22- Watermark =" Версия" />
23- <TextBlock Text =" Компьютеры" />
24- <ListBox Items =" {Binding Computers}"
25- SelectedItems =" {Binding AppEntity.Computers}"
26- SelectionMode =" Toggle"
27- Height =" 200" >
28- <ListBox .ItemTemplate>
29- <DataTemplate DataType =" models:Computer" >
30- <StackPanel Orientation =" Horizontal" >
31- <TextBlock Text =" {Binding Name}" />
32- <TextBlock Text =" | " />
33- <TextBlock Text =" {Binding User.FIO}" />
34- </StackPanel >
35- </DataTemplate >
36- </ListBox .ItemTemplate>
37- </ListBox >
38- <Button Content =" {Binding SaveButtonText}"
39- Command =" {Binding SaveApp}"
40- Cursor =" Hand"
41- FontWeight =" Bold"
42- HorizontalAlignment =" Stretch"
43- HorizontalContentAlignment =" Center"
44- IsVisible =" {Binding ButtonIsVisible}" />
45- </StackPanel >
19+ <StackPanel Margin =" 10"
20+ Spacing =" 5" >
21+ <TextBox Text =" {Binding AppEntity.Name}"
22+ Watermark =" Название"
23+ MaxLength =" 100" />
24+ <TextBox Text =" {Binding AppEntity.Version}"
25+ Watermark =" Версия"
26+ MaxLength =" 20" />
27+ <TextBlock Text =" Компьютеры" />
28+ <ListBox Items =" {Binding Computers}"
29+ SelectedItems =" {Binding AppEntity.Computers}"
30+ SelectionMode =" Toggle"
31+ Height =" 200" >
32+ <ListBox .ItemTemplate>
33+ <DataTemplate DataType =" models:Computer" >
34+ <StackPanel Orientation =" Horizontal" >
35+ <TextBlock Text =" {Binding Name}" />
36+ <TextBlock Text =" | " />
37+ <TextBlock Text =" {Binding User.FIO}" />
38+ </StackPanel >
39+ </DataTemplate >
40+ </ListBox .ItemTemplate>
41+ </ListBox >
42+ <Button Content =" {Binding SaveButtonText}"
43+ Command =" {Binding SaveApp}"
44+ Cursor =" Hand"
45+ FontWeight =" Bold"
46+ HorizontalAlignment =" Stretch"
47+ HorizontalContentAlignment =" Center"
48+ IsVisible =" {Binding ButtonIsVisible}" />
49+ </StackPanel >
4650</Window >
0 commit comments