|
@@ -3,8 +3,29 @@
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
xmlns:vm="using:AvaloniaApplication2.ViewModels"
|
|
|
+ xmlns:conv="using:AvaloniaApplication2.Converters"
|
|
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
|
|
x:Class="AvaloniaApplication2.Personal"
|
|
|
x:DataType="vm:PersonalVM">
|
|
|
-
|
|
|
+ <UserControl.Resources>
|
|
|
+ <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>
|
|
|
+ </StackPanel>
|
|
|
+ </Grid>
|
|
|
</UserControl>
|