CategoryDataAccount.axaml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  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="800" d:DesignHeight="450"
  7. x:Class="FinancialManagement.Views.CategoryDataAccount"
  8. x:DataType="vm:MainWindowViewModel">
  9. <Grid
  10. ColumnDefinitions="*"
  11. RowDefinitions="60, 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="1"
  80. Grid.Row="2"
  81. Background="#E3E6FF">
  82. <StackPanel HorizontalAlignment="Stretch">
  83. <Grid Margin="0 20 0 -60">
  84. <Grid.ColumnDefinitions>
  85. <ColumnDefinition Width="*" />
  86. <ColumnDefinition Width="*" />
  87. </Grid.ColumnDefinitions>
  88. <Border
  89. Grid.Column="0" >
  90. <Button
  91. FontFamily="{StaticResource NunitoBold}"
  92. CornerRadius="10"
  93. Content="Назад"
  94. Background="#7471E8"
  95. Foreground="White"
  96. FontSize="20"
  97. Padding="20 10 20 10"
  98. Margin="0 0 0 0"
  99. HorizontalAlignment="Center"
  100. Command="{Binding ToCategoryTable}">
  101. <Button.Styles>
  102. <Style Selector="Button:pointerover /template/ ContentPresenter">
  103. <Setter Property="Background" Value="#ffffff"></Setter>
  104. <Setter Property="Foreground" Value="#7471E8"></Setter>
  105. </Style>
  106. </Button.Styles>
  107. </Button>
  108. </Border>
  109. <Border
  110. Grid.Column="1" >
  111. <Button
  112. FontFamily="{StaticResource NunitoBold}"
  113. CornerRadius="10"
  114. Content="Сохранить"
  115. Background="#7471E8"
  116. Foreground="White"
  117. FontSize="20"
  118. Padding="20 10 20 10"
  119. HorizontalAlignment="Center"
  120. Margin="0 0 0 0"
  121. Command="{Binding SaveCategory}">
  122. <Button.Styles>
  123. <Style Selector="Button:pointerover /template/ ContentPresenter">
  124. <Setter Property="Background" Value="#ffffff"></Setter>
  125. <Setter Property="Foreground" Value="#7471E8"></Setter>
  126. </Style>
  127. </Button.Styles>
  128. </Button>
  129. </Border>
  130. </Grid>
  131. <TextBlock
  132. FontFamily="{StaticResource Nunito}"
  133. FontSize="30"
  134. Foreground=""
  135. Margin="0 60 0 0"
  136. HorizontalAlignment="Center"
  137. Text="{Binding CategoryDataAccountVM.Message}"/>
  138. <TextBlock
  139. FontFamily="{StaticResource NunitoBold}"
  140. FontSize="20"
  141. Foreground="#7471E8"
  142. Margin="10 10 0 0"
  143. Text="Название категории"/>
  144. <TextBox
  145. BorderBrush="#7471E8"
  146. Margin="10 10 10 0"
  147. Text="{Binding CategoryDataAccountVM.CategoryTitle}"
  148. TextWrapping="Wrap"
  149. Background="#ffffff"/>
  150. </StackPanel>
  151. </Panel>
  152. </Grid>
  153. </UserControl>