FinancialManagementPage.axaml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:vm="using:FinancialManagement.ViewModels"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="1600" d:DesignHeight="1080"
  7. x:Class="FinancialManagement.Views.FinancialManagementPage"
  8. x:DataType="vm:MainWindowViewModel">
  9. <Grid
  10. ColumnDefinitions="*"
  11. RowDefinitions="80, 10, *"
  12. Background="#7471E8">
  13. <StackPanel
  14. Orientation="Horizontal"
  15. HorizontalAlignment="Left">
  16. <Image
  17. Margin="20 0 0 0"
  18. HorizontalAlignment="Left"
  19. Width="50"
  20. Source="/Assets/Icon_Profile.png"/>
  21. <Border
  22. CornerRadius="10"
  23. Background="#ffffff"
  24. Padding="10 5 10 5"
  25. Margin="30 10 10 0"
  26. Height="40">
  27. <TextBlock
  28. HorizontalAlignment="Center"
  29. FontFamily="{StaticResource NunitoBold}"
  30. Foreground="#7471E8"
  31. FontSize="24"
  32. Text="{Binding FinancialManagementVM.UserName}"/>
  33. </Border>
  34. <Button
  35. Background="#ffffff"
  36. Foreground="#7471E8"
  37. CornerRadius="10"
  38. FontSize="24"
  39. Content="Редактировать профиль"
  40. FontFamily="{StaticResource NunitoBold}"
  41. Height="40"
  42. HorizontalAlignment="Right"
  43. Padding="20 5 20 0"
  44. Margin="20 10 20 0"
  45. Command="{Binding ToProfile}">
  46. <Button.Styles>
  47. <Style Selector="Button:pointerover /template/ ContentPresenter">
  48. <Setter Property="Background" Value="#E3E6FF"></Setter>
  49. <Setter Property="Foreground" Value="#7471E8"></Setter>
  50. </Style>
  51. </Button.Styles>
  52. </Button>
  53. <Button
  54. Background="#ffffff"
  55. Foreground="#7471E8"
  56. CornerRadius="10"
  57. FontSize="24"
  58. Content="Выйти"
  59. FontFamily="{StaticResource NunitoBold}"
  60. Height="40"
  61. HorizontalAlignment="Right"
  62. Padding="20 5 20 0"
  63. Margin="20 10 20 0"
  64. Command="{Binding ToLoadOut}">
  65. <Button.Styles>
  66. <Style Selector="Button:pointerover /template/ ContentPresenter">
  67. <Setter Property="Background" Value="#E3E6FF"></Setter>
  68. <Setter Property="Foreground" Value="#7471E8"></Setter>
  69. </Style>
  70. </Button.Styles>
  71. </Button>
  72. </StackPanel>
  73. <Panel
  74. Grid.Column="0"
  75. Grid.Row="2"
  76. Background="#E3E6FF">
  77. </Panel>
  78. <Panel
  79. Grid.Column="0"
  80. Grid.Row="2"
  81. Background="#E3E6FF"
  82. HorizontalAlignment="">
  83. <Button
  84. Background="#7471E8"
  85. Foreground="#ffffff"
  86. CornerRadius="10"
  87. FontSize="24"
  88. Content="Добавить счета"
  89. FontFamily="{StaticResource NunitoBold}"
  90. Height="40"
  91. HorizontalAlignment="Center"
  92. Padding="20 5 20 0"
  93. Margin="20 10 20 0"
  94. Command="{Binding ToFinanceTable}">
  95. <Button.Styles>
  96. <Style Selector="Button:pointerover /template/ ContentPresenter">
  97. <Setter Property="Background" Value="#ffffff"></Setter>
  98. <Setter Property="Foreground" Value="#7471E8"></Setter>
  99. </Style>
  100. </Button.Styles>
  101. </Button>
  102. </Panel>
  103. </Grid>
  104. </UserControl>