123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- <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="800" d:DesignHeight="450"
- x:Class="FinancialManagement.Views.CategoryDataAccount"
- x:DataType="vm:MainWindowViewModel">
- <Grid
- ColumnDefinitions="*"
- RowDefinitions="60, 10, *"
- Background="#7471E8">
- <StackPanel
- Orientation="Horizontal"
- HorizontalAlignment="Left">
- <Image
- Margin="20 0 0 0"
- HorizontalAlignment="Left"
- Width="50"
- Source="/Assets/Icon_Profile.png"/>
- <Border
- CornerRadius="10"
- Background="#ffffff"
- Padding="10 5 10 5"
- Margin="30 10 10 0"
- Height="40">
- <TextBlock
- HorizontalAlignment="Center"
- FontFamily="{StaticResource NunitoBold}"
- Foreground="#7471E8"
- FontSize="24"
- Text="{Binding FinancialManagementVM.UserName}"/>
- </Border>
- <Button
- Background="#ffffff"
- Foreground="#7471E8"
- CornerRadius="10"
- FontSize="24"
- Content="Редактировать профиль"
- FontFamily="{StaticResource NunitoBold}"
- Height="40"
- HorizontalAlignment="Right"
- Padding="20 5 20 0"
- Margin="20 10 20 0"
- Command="{Binding ToProfile}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#E3E6FF"></Setter>
- <Setter Property="Foreground" Value="#7471E8"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- Background="#ffffff"
- Foreground="#7471E8"
- CornerRadius="10"
- FontSize="24"
- Content="Выйти"
- FontFamily="{StaticResource NunitoBold}"
- Height="40"
- HorizontalAlignment="Right"
- Padding="20 5 20 0"
- Margin="20 10 20 0"
- Command="{Binding ToLoadOut}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#E3E6FF"></Setter>
- <Setter Property="Foreground" Value="#7471E8"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- <Panel
- Grid.Column="0"
- Grid.Row="2"
- Background="#E3E6FF">
- </Panel>
- <Panel
- Grid.Column="1"
- Grid.Row="2"
- Background="#E3E6FF">
- <StackPanel HorizontalAlignment="Stretch">
- <Grid Margin="0 20 0 -60">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Border
- Grid.Column="0" >
- <Button
- FontFamily="{StaticResource NunitoBold}"
- CornerRadius="10"
- Content="Назад"
- Background="#7471E8"
- Foreground="White"
- FontSize="20"
- Padding="20 10 20 10"
- Margin="0 0 0 0"
- HorizontalAlignment="Center"
- Command="{Binding ToCategoryTable}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#ffffff"></Setter>
- <Setter Property="Foreground" Value="#7471E8"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </Border>
- <Border
- Grid.Column="1" >
- <Button
- FontFamily="{StaticResource NunitoBold}"
- CornerRadius="10"
- Content="Сохранить"
- Background="#7471E8"
- Foreground="White"
- FontSize="20"
- Padding="20 10 20 10"
- HorizontalAlignment="Center"
- Margin="0 0 0 0"
- Command="{Binding SaveCategory}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#ffffff"></Setter>
- <Setter Property="Foreground" Value="#7471E8"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </Border>
- </Grid>
- <TextBlock
- FontFamily="{StaticResource Nunito}"
- FontSize="30"
- Foreground=""
- Margin="0 60 0 0"
- HorizontalAlignment="Center"
- Text="{Binding CategoryDataAccountVM.Message}"/>
- <TextBlock
- FontFamily="{StaticResource NunitoBold}"
- FontSize="20"
- Foreground="#7471E8"
- Margin="10 10 0 0"
- Text="Название категории"/>
- <TextBox
- BorderBrush="#7471E8"
- Margin="10 10 10 0"
- Text="{Binding CategoryDataAccountVM.CategoryTitle}"
- TextWrapping="Wrap"
- Background="#ffffff"/>
- </StackPanel>
- </Panel>
- </Grid>
- </UserControl>
|