|
@@ -11,21 +11,40 @@
|
|
|
<conv:ImageConverter x:Key="myImageConverter"/>
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
- <Grid>
|
|
|
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
- <TextBlock>
|
|
|
- <TextBlock.Text>
|
|
|
- <MultiBinding StringFormat="{} Добро пожаловать, {0} - Вы {1}">
|
|
|
- <Binding Path="User.Fio"></Binding>
|
|
|
- <Binding Path="User.RoleNavigation.Role1"></Binding>
|
|
|
- </MultiBinding>
|
|
|
- </TextBlock.Text>
|
|
|
- </TextBlock>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <TextBlock Text="Ваш логин:"></TextBlock>
|
|
|
- <TextBlock Text="{Binding User.Login}"></TextBlock>
|
|
|
- </StackPanel>
|
|
|
- <Image Height="100" Width="100" Source="{Binding User.Image,Converter={StaticResource myImageConverter}}"></Image>
|
|
|
+ <Grid Margin="20" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ <RowDefinition Height="Auto"/>
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <StackPanel VerticalAlignment="Center" HorizontalAlignment="Center">
|
|
|
+ <TextBlock Classes="PurpleTextBlock" Grid.Row="0" FontSize="20" FontWeight="Bold" HorizontalAlignment="Center">
|
|
|
+ <TextBlock.Text>
|
|
|
+ <MultiBinding StringFormat="Добро пожаловать, {0} - Вы {1}">
|
|
|
+ <Binding Path="User.Fio" />
|
|
|
+ <Binding Path="User.RoleNavigation.Role1" />
|
|
|
+ </MultiBinding>
|
|
|
+ </TextBlock.Text>
|
|
|
+ </TextBlock>
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center" Margin="0,10,0,10">
|
|
|
+ <TextBlock Classes="PurpleTextBlock" Text="Ваш логин:" FontWeight="SemiBold" Margin="0,0,5,0"/>
|
|
|
+ <TextBlock Classes="PurpleTextBlock" Text="{Binding User.Login}" />
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ <Button Command="{Binding Image}" Grid.Row="2" HorizontalAlignment="Center" Margin="0,5">
|
|
|
+ <TextBlock Text="Изменить изображение" />
|
|
|
+ </Button>
|
|
|
+
|
|
|
+ <Border Grid.Row="3" Margin="0,10" Padding="5">
|
|
|
+ <Image Height="100" Width="100" Source="{Binding User.Image, Converter={StaticResource myImageConverter}}" />
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Button Command="{Binding Vixod}" Grid.Row="4" HorizontalAlignment="Center" Margin="0,5">
|
|
|
+ <TextBlock Text="Выйти" />
|
|
|
+ </Button>
|
|
|
</StackPanel>
|
|
|
</Grid>
|
|
|
</UserControl>
|