67 lines
3.3 KiB
XML
67 lines
3.3 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="450"
|
||
Width="700"
|
||
Height="700"
|
||
x:Class="demo_2023.MainWindow"
|
||
x:CompileBindings="False"
|
||
Title="demo_2023">
|
||
|
||
<DockPanel>
|
||
|
||
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" HorizontalAlignment="Center" Margin="5">
|
||
<TextBlock Text = "Добро пожаловать!"/>
|
||
</StackPanel>
|
||
<StackPanel Orientation="Horizontal" DockPanel.Dock="Top" HorizontalAlignment="Right" Margin="5">
|
||
<ComboBox Width="150" x:Name="Направление" Margin="5">
|
||
<ComboBoxItem Content="IT"/>
|
||
<ComboBoxItem Content="Чет еще"/>
|
||
</ComboBox>
|
||
<ComboBox Width="150" x:Name="DateComboBox" SelectionChanged="DateComboBox_SelectionChanged" Margin="5">
|
||
<ComboBoxItem Content="Возрастание"/>
|
||
<ComboBoxItem Content="Убывание"/>
|
||
<ComboBoxItem Content="Все диапазоны"/>
|
||
</ComboBox>
|
||
<Button Content="Authorize" Click="Jury_reg"/>
|
||
</StackPanel>
|
||
|
||
<StackPanel Orientation="Horizontal" DockPanel.Dock="Bottom" HorizontalAlignment="Center">
|
||
<ListBox x:Name="EventListBox">
|
||
<ListBox.ItemsPanel>
|
||
<ItemsPanelTemplate>
|
||
<UniformGrid Columns="1"></UniformGrid>
|
||
</ItemsPanelTemplate>
|
||
</ListBox.ItemsPanel>
|
||
<ListBox.ItemTemplate>
|
||
<DataTemplate>
|
||
<Border BorderBrush="Gray" BorderThickness="1" Padding="10">
|
||
<StackPanel Orientation="Horizontal" Spacing="10">
|
||
<Image Width="100" Height="100" Source="{Binding Image}" VerticalAlignment="Center" Stretch="Uniform"/>
|
||
<StackPanel>
|
||
<TextBlock>
|
||
<Run Text="Событие: "/>
|
||
<Run Text="{Binding Sobitie}"/>
|
||
</TextBlock>
|
||
<TextBlock>
|
||
<Run Text="Дата: "/>
|
||
<Run Text="{Binding Date}"/>
|
||
</TextBlock>
|
||
<TextBlock>
|
||
<Run Text="Город: "/>
|
||
<Run Text="{Binding City}"/>
|
||
</TextBlock>
|
||
<TextBlock>
|
||
<Run Text="Дни: "/>
|
||
<Run Text="{Binding Days}"/>
|
||
</TextBlock>
|
||
</StackPanel>
|
||
</StackPanel>
|
||
</Border>
|
||
</DataTemplate>
|
||
</ListBox.ItemTemplate>
|
||
</ListBox>
|
||
</StackPanel>
|
||
</DockPanel>
|
||
</Window> |