Logs.axaml 1.6 KB

12345678910111213141516171819202122232425
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="1000" d:DesignHeight="990"
  6. xmlns:vm="using:AvaloniaApplication4.ViewModels"
  7. x:DataType="vm:LogsViewModel"
  8. x:Class="AvaloniaApplication4.Views.ActionPages.Logs"
  9. Background="White"
  10. Padding="80">
  11. <ScrollViewer>
  12. <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="0 20 0 0">
  13. <TextBlock Margin="0 0 0 40" Text="Активность пользователей" Classes="titleStyle" FontWeight="Bold"/>
  14. <DataGrid AutoGenerateColumns="False" ItemsSource="{Binding Logs}" GridLinesVisibility="All" BorderThickness="1" BorderBrush="Gray" HorizontalAlignment="Stretch" Margin="0 0 0 20">
  15. <DataGrid.Columns>
  16. <DataGridTextColumn IsReadOnly="True" Header="Фамилия" Binding="{Binding IdUserNavigation.Surname}"/>
  17. <DataGridTextColumn IsReadOnly="True" Header="Имя" Binding="{Binding IdUserNavigation.Name}"/>
  18. <DataGridTextColumn IsReadOnly="True" Header="Отчество" Binding="{Binding IdUserNavigation.Patronumic}"/>
  19. <DataGridTextColumn IsReadOnly="True" Header="Действие" Binding="{Binding Description}"/>
  20. <DataGridTextColumn IsReadOnly="True" Header="Дата" Binding="{Binding Date}"/>
  21. </DataGrid.Columns>
  22. </DataGrid>
  23. </StackPanel>
  24. </ScrollViewer>
  25. </UserControl>