123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221 |
- <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="1200" d:DesignHeight="800"
- x:Class="FinancialManagement.Views.FinanceDataAccount"
- 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="*" />
- <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 ToFinanceTable}">
- <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"
- 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="2" >
- <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 SaveFinance}">
- <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 70 0 0"
- HorizontalAlignment="Center"
- Text="{Binding FinanceDataAccountVM.Message}"/>
- <TextBlock
- FontFamily="{StaticResource NunitoBold}"
- FontSize="20"
- Foreground="#7471E8"
- Margin="10 0 0 0"
- Text="Оборот"/>
- <StackPanel>
- <ComboBox ItemsSource="{Binding FinanceDataAccountVM.TurnoverList}"
- SelectedItem="{Binding FinanceDataAccountVM.CategoryFinTitle}"
- SelectedIndex="{Binding FinanceDataAccountVM.StartsIndex}"
- Background="#ffffff"
- BorderBrush="#7471E8"
-
- HorizontalAlignment="Center"
- Margin="0 10 20 0"
- Width="{Binding $parent[StackPanel].Bounds.Width}"
- />
- </StackPanel>
- <TextBlock
- FontFamily="{StaticResource NunitoBold}"
- FontSize="20"
- Foreground="#7471E8"
- Margin="10 10 0 0"
- Text="Название"/>
- <TextBox
- BorderBrush="#7471E8"
- Margin="0 10 10 0"
- Text="{Binding FinanceDataAccountVM.TitleFinance}"
- TextWrapping="Wrap"
- Background="#ffffff"
- Width="{Binding $parent[StackPanel].Bounds.Width}"/>
- <TextBlock
- FontFamily="{StaticResource NunitoBold}"
- FontSize="20"
- Foreground="#7471E8"
- Margin="10 10 0 0"
- Text="Категория"/>
- <ComboBox ItemsSource="{Binding FinanceDataAccountVM.CategoriesList}"
- SelectedItem="{Binding FinanceDataAccountVM.CategoryTitle}"
- Background="#ffffff"
- BorderBrush="#7471E8"
- HorizontalAlignment="Center"
- Margin="0 10 20 0"
- Width="{Binding $parent[StackPanel].Bounds.Width}">
- </ComboBox>
- <TextBlock
- FontFamily="{StaticResource NunitoBold}"
- FontSize="20"
- Foreground="#7471E8"
- Margin="10 10 0 0"
- Text="Стоимость"/>
- <TextBox
- BorderBrush="#7471E8"
- Margin="0 10 10 0"
- Text="{Binding FinanceDataAccountVM.PriceFinance}"
- TextWrapping="Wrap"
- Width="{Binding $parent[StackPanel].Bounds.Width}"
- Background="#ffffff"/>
- </StackPanel>
- </Panel>
- </Grid>
- </UserControl>
|