Page2.axaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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="800" d:DesignHeight="450"
  6. x:Class="reactivepril.Page2"
  7. xmlns:vm="using:reactivepril.ViewModels"
  8. xmlns:v="using:reactivepril.View"
  9. x:DataType="vm:Page2ViewModel">
  10. <Grid RowDefinitions="70,*">
  11. <StackPanel Orientation="Horizontal" Grid.Row="0">
  12. <Button Content="Выход" HorizontalAlignment="Right" VerticalAlignment="Center" Command="{Binding GoBack}"/>
  13. <WrapPanel Margin="18">
  14. <TextBlock Text="Поиск:" Height="35" Padding="10"/>
  15. <TextBox Text="{Binding TextFind}" Watermark="Введите текст для поиска" Height="35" Grid.Column="0" Grid.Row="0"/>
  16. <TextBlock Text="Фильтр по полу" Grid.Column="0" Grid.Row="0" Height="35" Padding="10"/>
  17. <ComboBox ItemsSource="{Binding GenderList}" SelectedItem="{Binding FilteredGender}" Height="35" Grid.Column="0" Grid.Row="0">
  18. <ComboBox.ItemTemplate>
  19. <DataTemplate>
  20. <TextBlock Text="{Binding NameGender}"/>
  21. </DataTemplate>
  22. </ComboBox.ItemTemplate>
  23. </ComboBox>
  24. </WrapPanel>
  25. </StackPanel>
  26. <ListBox ItemsSource="{Binding Users}" Grid.Row="1">
  27. <ListBox.ItemTemplate>
  28. <DataTemplate>
  29. <StackPanel>
  30. <TextBlock Text="{Binding Name, StringFormat=Имя: {0}}"/>
  31. <TextBlock Text="{Binding GendersNavigation.NameGender, StringFormat=Пол: {0}}"/>
  32. </StackPanel>
  33. </DataTemplate>
  34. </ListBox.ItemTemplate>
  35. </ListBox>
  36. <Button Content="Профиль" HorizontalAlignment="Center" VerticalAlignment="Stretch" Command="{Binding GoToProf}"/>
  37. </Grid>
  38. </UserControl>