ProfileUserPage.axaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:vm="using:AvaloniaApplicationKuzminIV.ViewModels"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  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="AvaloniaApplicationKuzminIV.ProfileUserPage"
  8. x:DataType="vm:Profilepageviewmodel">
  9. <Grid>
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="*" />
  12. <ColumnDefinition Width="*" />
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Height="Auto" />
  16. <RowDefinition Height="Auto" />
  17. <RowDefinition Height="Auto" />
  18. <RowDefinition Height="Auto" />
  19. <RowDefinition Height="Auto" />
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="Auto" />
  22. <RowDefinition Height="Auto" />
  23. <RowDefinition Height="Auto" />
  24. </Grid.RowDefinitions>
  25. <StackPanel Grid.Column="0">
  26. <TextBlock Grid.Row="0" Grid.Column="2" Classes="Header" Text="{Binding Mycharacter.Sname, StringFormat=Профиль пользователя {0}}" Margin="5" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" />
  27. <Button Grid.Row="0" Grid.Column="0" Command="{Binding GoToNazad}" Content="Выход" HorizontalAlignment="Left" BorderThickness="1" BorderBrush="Black" CornerRadius="8" VerticalAlignment="Center" Margin="5" />
  28. <Image Source="{Binding Image}" Grid.Row="1" Grid.Column="2" Classes="AnimatedIB"/>
  29. </StackPanel>
  30. <StackPanel Grid.Column="1">
  31. <TextBlock Text="{Binding Mycharacter.Sname, StringFormat=Имя: {0}}" HorizontalAlignment="Center" VerticalAlignment="Center" Classes="Default"/>
  32. <TextBlock Text="{Binding Mycharacter.Dob, StringFormat=Дата создания: {0:dd/MM/yyyy}}" HorizontalAlignment="Center" VerticalAlignment="Center" Classes="Default"/>
  33. <TextBlock Text="Измените имя персонажа: " HorizontalAlignment="Center" VerticalAlignment="Center" Classes="Default"/>
  34. <TextBox Text="{Binding Sname}" Width="200" />
  35. <Button Command="{Binding OnChangeNameCharacter}" BorderThickness="1" BorderBrush="Black" CornerRadius="10" Content="Сохранить изменения" Background="LightGreen" HorizontalAlignment="Center" Margin="10" />
  36. </StackPanel>
  37. </Grid>
  38. </UserControl>