dmeo040225/HistoryWindow.axaml
2025-02-21 16:09:01 +03:00

42 lines
3.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<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="800" d:DesignHeight="450"
x:Class="dmeo040225.HistoryWindow"
x:CompileBindings="False"
Title="HistoryWindow">
<Border Background="Bisque">
<DockPanel Background="Bisque">
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Background="Gray" Height="30">
<Button Content="Назад" Click="Back_OnClick" Width="120" Background="LightGray" Foreground="Black" HorizontalAlignment="Left" DockPanel.Dock="Left"/>
<TextBlock x:Name="TimerText" Foreground="White" Margin="10,5,0,0" HorizontalAlignment="Center"/>
<ComboBox VerticalAlignment="Center" Width="100" x:Name="SortComboBox" SelectionChanged="SortComboBox_OnSelectionChanged">
<ComboBoxItem Content="сброс"/>
<ComboBoxItem Content="later"/>
<ComboBoxItem Content="nah"/>
</ComboBox>
<ComboBox VerticalAlignment="Center" Width="100" x:Name="FilterCombobox" SelectionChanged="FilterCombobox_OnSelectionChanged"/>
</StackPanel>
<ScrollViewer DockPanel.Dock="Top" VerticalScrollBarVisibility="Auto">
<ListBox x:Name="ListBoxHistory">
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush="Gray" BorderThickness="1" Padding="5">
<Grid>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="{Binding Lastlogin}" TextWrapping="Wrap" TextAlignment="Center"/>
<TextBlock Text="{Binding Login}" TextWrapping="Wrap" TextAlignment="Center" />
<TextBlock Text="{Binding logOrNoText}" TextWrapping="Wrap" TextAlignment="Center"/>
</StackPanel>
</Grid>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</ScrollViewer>
</DockPanel>
</Border>
</Window>