123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <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.CategoryTable"
- x:DataType="vm:MainWindowViewModel">
- <Grid
- ColumnDefinitions="*"
- RowDefinitions="60, 10, 7*, *"
- 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
- Background="#E3E6FF">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
- <Button
- FontFamily="{StaticResource NunitoBold}"
- Padding="15 10 15 10"
- Content="Назад"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="18"
- Margin="0 20 40 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Left"
- Command="{Binding ToFinanceDataAccount}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="White"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- FontFamily="{StaticResource NunitoBold}"
- Padding="20 10 20 10"
- Content="Создать категорию"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="20"
- Margin=" 0 20 30 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Center"
- Command="{Binding OpenNewCategoryData}">
- <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
- FontFamily="{StaticResource NunitoBold}"
- Padding="20 10 20 10"
- Content="Открыть категорию"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="20"
- Margin=" 0 20 0 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Center"
- Command="{Binding OpenCategory}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="White"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- <Button
- FontFamily="{StaticResource NunitoBold}"
- Padding="20 10 20 10"
- Content="Удалить категорию"
- Background="#ffffff"
- Foreground="#7471E8"
- FontSize="20"
- Margin="30 20 0 20"
- BorderThickness="3"
- BorderBrush="#7471E8"
- HorizontalAlignment="Center"
- Command="{Binding DeleteCategory}">
- <Button.Styles>
- <Style Selector="Button:pointerover /template/ ContentPresenter">
- <Setter Property="Background" Value="#7471E8"></Setter>
- <Setter Property="Foreground" Value="White"></Setter>
- </Style>
- </Button.Styles>
- </Button>
- </StackPanel>
- <DataGrid
- Width="{Binding $parent[StackPanel].Bounds.Width}"
- Height="{Binding $parent[StackPanel].Bounds.Height}"
- Background="White"
- FontFamily="{StaticResource Nunito}"
- FontSize="40"
- IsReadOnly="True"
- GridLinesVisibility="All"
- BorderThickness="3"
- BorderBrush="#7471E8"
- ItemsSource="{Binding CategoryTableVM.Categores}"
- SelectedItem="{Binding CategoryTableVM.ItemCategory}">
- <DataGrid.Columns>
- <DataGridTextColumn
- Header="Категория"
- Binding="{Binding CategoryTitle}"
- Width="2*"/>
- </DataGrid.Columns>
- </DataGrid>
- </StackPanel>
- </Panel>
- </Grid>
- </UserControl>
|