1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:vm="using:AvaloniaApplicationKuzminIV.ViewModels"
- 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="AvaloniaApplicationKuzminIV.ProfileUserPage"
- x:DataType="vm:Profilepageviewmodel">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <StackPanel Grid.Column="0">
- <TextBlock Grid.Row="0" Grid.Column="2" Classes="Header" Text="{Binding Mycharacter.Sname, StringFormat=Профиль пользователя {0}}" Margin="5" TextAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" />
- <Button Grid.Row="0" Grid.Column="0" Command="{Binding GoToNazad}" Content="Выход" HorizontalAlignment="Left" BorderThickness="1" BorderBrush="Black" CornerRadius="8" VerticalAlignment="Center" Margin="5" />
- <Image Source="{Binding Image}" Grid.Row="1" Grid.Column="2" Classes="AnimatedIB"/>
- </StackPanel>
- <StackPanel Grid.Column="1">
- <TextBlock Text="{Binding Mycharacter.Sname, StringFormat=Имя: {0}}" HorizontalAlignment="Center" VerticalAlignment="Center" Classes="Default"/>
- <TextBlock Text="{Binding Mycharacter.Dob, StringFormat=Дата создания: {0:dd/MM/yyyy}}" HorizontalAlignment="Center" VerticalAlignment="Center" Classes="Default"/>
- <TextBlock Text="Измените имя персонажа: " HorizontalAlignment="Center" VerticalAlignment="Center" Classes="Default"/>
- <TextBox Text="{Binding Sname}" Width="200" />
- <Button Command="{Binding OnChangeNameCharacter}" BorderThickness="1" BorderBrush="Black" CornerRadius="10" Content="Сохранить изменения" Background="LightGreen" HorizontalAlignment="Center" Margin="10" />
- </StackPanel>
- </Grid>
- </UserControl>
|