MainWindow.axaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Window xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:AvaloniaApplication2.ViewModels"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="AvaloniaApplication2.Views.MainWindow"
  8. x:DataType="vm:MainWindowViewModel"
  9. xmlns:local="clr-namespace:AvaloniaApplication2"
  10. Icon="/Assets/avalonia-logo.ico">
  11. <!--<ScrollViewer
  12. VerticalScrollBarVisibility="Auto">
  13. <ListBox
  14. ItemsSource="{Binding Users}">
  15. <ListBox.ItemTemplate>
  16. <DataTemplate>
  17. <StackPanel
  18. Margin ="10" Orientation="Vertical">
  19. <TextBlock
  20. Text="Id: " FontWeight="Bold" />
  21. <TextBlock
  22. Text="{Binding Id}" />
  23. <TextBlock
  24. Text="Имя: " FontWeight="Bold"/>
  25. <TextBlock
  26. Text="{Binding Username}" />
  27. <TextBlock
  28. Text="Почта: " FontWeight="Bold" />
  29. <TextBlock
  30. Text="{Binding Email}" />
  31. <TextBlock
  32. Text="Дата создания: " FontWeight="Bold" />
  33. <TextBlock
  34. Text="{Binding Createdat}" />
  35. <Separator
  36. Margin="5"/>
  37. </StackPanel>
  38. </DataTemplate>
  39. </ListBox.ItemTemplate>
  40. </ListBox>
  41. </ScrollViewer>-->
  42. <Grid ColumnDefinitions="200,*" RowDefinitions="50,*,50">
  43. <TextBlock Text="Заголовок" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  44. <TextBlock Text="Меню" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  45. <TextBlock Text="Футер" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  46. <ContentControl Content="{Binding Page}" Grid.Column="1" Grid.Row="1"/>
  47. </Grid>
  48. </Window>