49 lines
1.7 KiB
XML
49 lines
1.7 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:Presence.Desktop.ViewModels"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
x:Class="Presence.Desktop.Views.MainWindow"
|
|
Icon="/Assets/avalonia-logo.ico"
|
|
Title="Presence.Desktop"
|
|
x:DataType="vm:MainWindowViewModel">
|
|
|
|
<Design.DataContext>
|
|
<vm:MainWindowViewModel/>
|
|
</Design.DataContext>
|
|
|
|
<DockPanel Background="White">
|
|
<StackPanel Height="30" DockPanel.Dock="Bottom" Background="White">
|
|
<TextBlock Text="List ↑" HorizontalAlignment="Center" Margin="5"/>
|
|
<StackPanel/>
|
|
</StackPanel>
|
|
<!-- Верхняя панель -->
|
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" HorizontalAlignment="Center" Background="White" Height="40">
|
|
<TextBlock Text="Combobox →" HorizontalAlignment="Center" Margin="10"/>
|
|
<ComboBox ItemsSource="{Binding Groups}" SelectedValue="{Binding SelectedGroupItem}">
|
|
<ComboBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<TextBlock Text="{Binding Name}"/>
|
|
</DataTemplate>
|
|
</ComboBox.ItemTemplate>
|
|
</ComboBox>
|
|
<ComboBox Margin="5"/>
|
|
<ComboBox Margin="5"/>
|
|
</StackPanel>
|
|
<Border>
|
|
<ListBox Background="Bisque" ItemsSource="{Binding Users}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<StackPanel Orientation="Horizontal">
|
|
<TextBlock Text="{Binding Name}" />
|
|
</StackPanel>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</Border>
|
|
<StackPanel Background="Beige"/>
|
|
</DockPanel>
|
|
|
|
</Window>
|