123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:vm="using:FinancialManagement.ViewModels"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="1600" d:DesignHeight="1080"
- x:Class="FinancialManagement.Views.UserProfilePage"
- x:DataType="vm:MainWindowViewModel">
- <UserControl.Styles>
- <Style Selector="TextBox">
- <Setter Property="FontFamily" Value="{StaticResource Nunito}" />
- <Setter Property="Foreground" Value="#7471E8"/>
- <Setter Property="CornerRadius" Value="20"/>
- <Setter Property="BorderThickness" Value="0"/>
- </Style>
- <Style Selector="TextBlock">
- <Setter Property="FontFamily" Value="{StaticResource NunitoBold}" />
- <Setter Property="Foreground" Value="#7471E8"/>
- </Style>
- <Style Selector="Button">
- <Setter Property="FontFamily" Value="{StaticResource NunitoBold}" />
- </Style>
- </UserControl.Styles>
- <Grid Background="#7471E8" RowDefinitions="*" ColumnDefinitions="*">
- <StackPanel Orientation="Horizontal">
- <Image
- Source="avares://FinancialManagement/Assets/BackroundFon.png"
- Stretch="Fill"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Width="1550"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <Image
- Grid.Row="0"
- Grid.Column="0"
- Source=""
- Stretch="Fill"
- VerticalAlignment="Top"/>
- </StackPanel>
- <Border
- Grid.Row="0"
- Grid.Column="1"
- HorizontalAlignment="Center"
- Background="#E3E6FF"
- Height="680"
- Width="500"
- Padding="20"
- CornerRadius="10">
- <StackPanel
- Orientation="Vertical"
- VerticalAlignment="Center"
- Width="400">
- <Image
- Width="150"
- Source=""/>
- <TextBox
- HorizontalAlignment="Center"
- FontSize="30"
- Text="{Binding UserProfileVM.UserName}"
- Margin="0 0 0 20"
- Padding="20 10 20 10"/>
- <StackPanel
- Orientation="Horizontal">
- <TextBlock
- Margin="0 5 0 0"
- FontSize="25"
- Text="Логин"/>
- <Image
- Width="35"
- Margin="20 0 0 0"
- Source=""/>
- </StackPanel>
- <TextBox
- CornerRadius="5"
- FontSize="20"
- Watermark="Логин"
- Padding="10 10 10 10"
- Margin="0 15 0 30"
- Text="{Binding UserProfileVM.Login}"/>
- <StackPanel
- Orientation="Horizontal">
- <TextBlock
- Margin="0 5 0 0"
- FontSize="25"
- Text="Телефон"/>
- <Image
- Width="35"
- Margin="20 0 0 0"
- Source=""/>
- </StackPanel>
- <TextBox
- CornerRadius="5"
- FontSize="20"
- Watermark="Телефон"
- Padding="10 10 10 10"
- Margin="0 15 0 30"
- Text="{Binding UserProfileVM.Phone}"/>
- <StackPanel
- Orientation="Horizontal">
- <TextBlock
- Margin="0 15 0 0"
- FontSize="25"
- Text="Пароль"/>
- <Image
- Width="35"
- Margin="20 0 0 0"
- Source=""/>
- </StackPanel>
- <StackPanel HorizontalAlignment="Right">
- <Button
- Background="Transparent"
- FontSize="18"
- Foreground="#7471E8"
- Content="Показать пароль"
- Margin="0 -10 0 -5"
- Command="{Binding ShowHidePasswordProfile}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="Transparent"></Setter>
- <Setter Property="Foreground" Value="#30DD6B"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- <TextBox
- CornerRadius="5"
- FontSize="20"
- PasswordChar="{Binding UserProfileVM.PasswordChar}"
- Watermark="Пароль"
- Padding="10 10 10 10"
- Margin="0 15 0 30"
- Text="{Binding UserProfileVM.Password}"/>
- <TextBlock
- FontSize="24"
- Foreground="Red"
- HorizontalAlignment="Center"
-
- Text="{Binding UserProfileVM.Message}"/>
- <StackPanel
- Margin="0 20 0 0"
- Orientation="Horizontal"
- HorizontalAlignment="Center">
- <Button
- CornerRadius="10"
- Content="Назад"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="25"
- BorderThickness="3"
- BorderBrush="#7471E8"
- Padding="20 10 20 10"
- Margin="0 0 30 0"
- Command="{Binding BackNotChanges}"
- HorizontalAlignment="Center">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="#ffffff"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- CornerRadius="10"
- Content="Сохранить"
- Background="#ffffff"
- Foreground="#7471E8"
- BorderThickness="3"
- BorderBrush="#7471E8"
- FontSize="25"
- Command="{Binding SaveChangeUserData}"
- Padding="20 10 20 10"
- HorizontalAlignment="Center">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="#ffffff"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- </StackPanel>
- </Border>
- </Grid>
- </UserControl>
|