presence/Presence.Desktop/Views/MainWindow.axaml

49 lines
1.7 KiB
Plaintext
Raw Normal View History

2024-11-24 18:05:17 +00:00
<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">
2024-12-02 10:04:59 +00:00
<TextBlock Text="List ↑" HorizontalAlignment="Center" Margin="5"/>
2024-11-24 18:05:17 +00:00
<StackPanel/>
</StackPanel>
<!-- Верхняя панель -->
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" HorizontalAlignment="Center" Background="White" Height="40">
2024-12-02 10:04:59 +00:00
<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>
2024-11-24 18:05:17 +00:00
<ComboBox Margin="5"/>
<ComboBox Margin="5"/>
</StackPanel>
2024-12-02 10:04:59 +00:00
<Border>
<ListBox Background="Bisque" ItemsSource="{Binding Users}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Border>
2024-11-24 18:05:17 +00:00
<StackPanel Background="Beige"/>
</DockPanel>
</Window>