FinanceDataAccount.axaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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="1200" d:DesignHeight="800"
  7. x:Class="FinancialManagement.Views.FinanceDataAccount"
  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. <ColumnDefinition Width="*" />
  88. </Grid.ColumnDefinitions>
  89. <Border
  90. Grid.Column="0" >
  91. <Button
  92. FontFamily="{StaticResource NunitoBold}"
  93. CornerRadius="10"
  94. Content="Назад"
  95. Background="#7471E8"
  96. Foreground="White"
  97. FontSize="20"
  98. Padding="20 10 20 10"
  99. Margin="0 0 0 0"
  100. HorizontalAlignment="Center"
  101. Command="{Binding ToFinanceTable}">
  102. <Button.Styles>
  103. <Style Selector="Button:pointerover /template/ ContentPresenter">
  104. <Setter Property="Background" Value="#ffffff"></Setter>
  105. <Setter Property="Foreground" Value="#7471E8"></Setter>
  106. </Style>
  107. </Button.Styles>
  108. </Button>
  109. </Border>
  110. <Border
  111. Grid.Column="1" >
  112. <Button
  113. FontFamily="{StaticResource NunitoBold}"
  114. CornerRadius="10"
  115. Content="Изменить категории"
  116. Background="#7471E8"
  117. Foreground="White"
  118. FontSize="20"
  119. Padding="20 10 20 10"
  120. Margin="0 0 0 0"
  121. HorizontalAlignment="Center"
  122. Command="{Binding ToCategoryTable}">
  123. <Button.Styles>
  124. <Style Selector="Button:pointerover /template/ ContentPresenter">
  125. <Setter Property="Background" Value="#ffffff"></Setter>
  126. <Setter Property="Foreground" Value="#7471E8"></Setter>
  127. </Style>
  128. </Button.Styles>
  129. </Button>
  130. </Border>
  131. <Border
  132. Grid.Column="2" >
  133. <Button
  134. FontFamily="{StaticResource NunitoBold}"
  135. CornerRadius="10"
  136. Content="Сохранить"
  137. Background="#7471E8"
  138. Foreground="White"
  139. FontSize="20"
  140. Padding="20 10 20 10"
  141. HorizontalAlignment="Center"
  142. Margin="0 0 0 0"
  143. Command="{Binding SaveFinance}">
  144. <Button.Styles>
  145. <Style Selector="Button:pointerover /template/ ContentPresenter">
  146. <Setter Property="Background" Value="#ffffff"></Setter>
  147. <Setter Property="Foreground" Value="#7471E8"></Setter>
  148. </Style>
  149. </Button.Styles>
  150. </Button>
  151. </Border>
  152. </Grid>
  153. <TextBlock
  154. FontFamily="{StaticResource Nunito}"
  155. FontSize="30"
  156. Foreground=""
  157. Margin="0 70 0 0"
  158. HorizontalAlignment="Center"
  159. Text="{Binding FinanceDataAccountVM.Message}"/>
  160. <TextBlock
  161. FontFamily="{StaticResource NunitoBold}"
  162. FontSize="20"
  163. Foreground="#7471E8"
  164. Margin="10 0 0 0"
  165. Text="Оборот"/>
  166. <StackPanel>
  167. <ComboBox ItemsSource="{Binding FinanceDataAccountVM.TurnoverList}"
  168. SelectedItem="{Binding FinanceDataAccountVM.CategoryFinTitle}"
  169. SelectedIndex="{Binding FinanceDataAccountVM.StartsIndex}"
  170. Background="#ffffff"
  171. BorderBrush="#7471E8"
  172. HorizontalAlignment="Center"
  173. Margin="0 10 20 0"
  174. Width="{Binding $parent[StackPanel].Bounds.Width}"
  175. />
  176. </StackPanel>
  177. <TextBlock
  178. FontFamily="{StaticResource NunitoBold}"
  179. FontSize="20"
  180. Foreground="#7471E8"
  181. Margin="10 10 0 0"
  182. Text="Название"/>
  183. <TextBox
  184. BorderBrush="#7471E8"
  185. Margin="0 10 10 0"
  186. Text="{Binding FinanceDataAccountVM.TitleFinance}"
  187. TextWrapping="Wrap"
  188. Background="#ffffff"
  189. Width="{Binding $parent[StackPanel].Bounds.Width}"/>
  190. <TextBlock
  191. FontFamily="{StaticResource NunitoBold}"
  192. FontSize="20"
  193. Foreground="#7471E8"
  194. Margin="10 10 0 0"
  195. Text="Категория"/>
  196. <ComboBox ItemsSource="{Binding FinanceDataAccountVM.CategoriesList}"
  197. SelectedItem="{Binding FinanceDataAccountVM.CategoryTitle}"
  198. Background="#ffffff"
  199. BorderBrush="#7471E8"
  200. HorizontalAlignment="Center"
  201. Margin="0 10 20 0"
  202. Width="{Binding $parent[StackPanel].Bounds.Width}">
  203. </ComboBox>
  204. <TextBlock
  205. FontFamily="{StaticResource NunitoBold}"
  206. FontSize="20"
  207. Foreground="#7471E8"
  208. Margin="10 10 0 0"
  209. Text="Стоимость"/>
  210. <TextBox
  211. BorderBrush="#7471E8"
  212. Margin="0 10 10 0"
  213. Text="{Binding FinanceDataAccountVM.PriceFinance}"
  214. TextWrapping="Wrap"
  215. Width="{Binding $parent[StackPanel].Bounds.Width}"
  216. Background="#ffffff"/>
  217. </StackPanel>
  218. </Panel>
  219. </Grid>
  220. </UserControl>