SettingWindow.xaml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <Window
  2. x:Class="SHJX.Service.Shell.Views.Setting.SettingWindow"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:prism="http://prismlibrary.com/"
  9. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  10. xmlns:vc="clr-namespace:SHJX.Service.Common.ElementHelper;assembly=SHJX.Service.Common"
  11. Title="设置"
  12. Width="764"
  13. Height="900"
  14. prism:ViewModelLocator.AutoWireViewModel="True"
  15. vc:DialogCloseHelper.DialogResult="{Binding DialogResult}"
  16. AllowsTransparency="True"
  17. Background="Transparent"
  18. ResizeMode="NoResize"
  19. WindowStartupLocation="CenterScreen"
  20. WindowStyle="None"
  21. mc:Ignorable="d">
  22. <i:Interaction.Triggers>
  23. <i:EventTrigger EventName="Loaded">
  24. <i:InvokeCommandAction Command="{Binding LoginLoadingCommand}" />
  25. </i:EventTrigger>
  26. <i:EventTrigger EventName="Closing">
  27. <i:InvokeCommandAction Command="{Binding ClosingCommand}" />
  28. </i:EventTrigger>
  29. </i:Interaction.Triggers>
  30. <Window.Resources>
  31. <DataTemplate x:Key="tabTemplate">
  32. <TabItem Header="{Binding Header}" />
  33. </DataTemplate>
  34. </Window.Resources>
  35. <Grid>
  36. <Grid.RowDefinitions>
  37. <RowDefinition Height="0.7*" />
  38. <RowDefinition Height="1*" />
  39. <RowDefinition Height="15*" />
  40. <RowDefinition Height="1*" />
  41. </Grid.RowDefinitions>
  42. <Border
  43. Grid.Row="0"
  44. Grid.RowSpan="4"
  45. Margin="3"
  46. Background="White"
  47. BorderBrush="#886452A4"
  48. BorderThickness="3"
  49. CornerRadius="5">
  50. <Border.Effect>
  51. <DropShadowEffect
  52. BlurRadius="10"
  53. Opacity="0.6"
  54. ShadowDepth="0"
  55. Color="LightGray" />
  56. </Border.Effect>
  57. </Border>
  58. <Border
  59. Grid.Row="0"
  60. Margin="5"
  61. Background="#6452A4"
  62. CornerRadius="5,5,0,0" />
  63. <Grid
  64. x:Name="SettingTag"
  65. Grid.Row="0"
  66. Background="Transparent"
  67. MouseLeftButtonDown="SettingTag_MouseLeftButtonDown">
  68. <TextBlock
  69. Margin="10,0,0,0"
  70. HorizontalAlignment="Left"
  71. VerticalAlignment="Center"
  72. FontFamily="幼圆"
  73. FontWeight="UltraBlack"
  74. Foreground="White"
  75. Text="设置" />
  76. <Button
  77. Name="btn_setting_close"
  78. Width="25"
  79. Height="25"
  80. Margin="0,0,10,0"
  81. HorizontalAlignment="Right"
  82. VerticalAlignment="Center"
  83. pu:ButtonHelper.ClickStyle="Sink"
  84. pu:ButtonHelper.CornerRadius="15"
  85. pu:ButtonHelper.HoverBrush="#929FDE"
  86. Background="Transparent"
  87. Click="btn_setting_close_Click"
  88. Cursor="Hand">
  89. <Image
  90. Width="20"
  91. Height="20"
  92. Source="/SHJX.Service.Resource;component/Assets/Photos/关闭.png" />
  93. </Button>
  94. </Grid>
  95. <Border
  96. Grid.Row="1"
  97. Width="740"
  98. Margin="0,5,0,5"
  99. Background="#6452A4"
  100. CornerRadius="5">
  101. <TabControl
  102. x:Name="Menu"
  103. Margin="20,0"
  104. HorizontalAlignment="Stretch"
  105. VerticalAlignment="Bottom"
  106. pu:TabControlHelper.SelectedForeground="White"
  107. Background="Transparent"
  108. Cursor="Hand"
  109. Foreground="#CCCCCC"
  110. ItemTemplate="{StaticResource ResourceKey=tabTemplate}"
  111. ItemsSource="{Binding TabItemInfos}">
  112. <i:Interaction.Triggers>
  113. <i:EventTrigger EventName="SelectionChanged">
  114. <i:InvokeCommandAction Command="{Binding MenuSelectionChangedCommand}" CommandParameter="{Binding ElementName=Menu, Path=SelectedItem.Header}" />
  115. </i:EventTrigger>
  116. </i:Interaction.Triggers>
  117. </TabControl>
  118. </Border>
  119. <Border
  120. Grid.Row="2"
  121. Width="740"
  122. Margin="0,0,0,5"
  123. Background="#F6FBFF"
  124. BorderBrush="#6452A4"
  125. BorderThickness="2"
  126. CornerRadius="5">
  127. <ScrollViewer
  128. HorizontalAlignment="Stretch"
  129. BorderBrush="#666666"
  130. BorderThickness="0"
  131. HorizontalScrollBarVisibility="Disabled"
  132. VerticalScrollBarVisibility="Auto">
  133. <ContentControl x:Name="settingOptionRegion" />
  134. </ScrollViewer>
  135. </Border>
  136. <Border
  137. Grid.Row="3"
  138. Width="740"
  139. Margin="0,0,0,10"
  140. HorizontalAlignment="Center"
  141. Background="#6452A4"
  142. CornerRadius="5">
  143. <StackPanel
  144. Margin="0,0,30,0"
  145. HorizontalAlignment="Right"
  146. Orientation="Horizontal">
  147. <Button
  148. Width="80"
  149. Height="25"
  150. Margin="10,0"
  151. pu:ButtonHelper.ButtonStyle="Hollow"
  152. pu:ButtonHelper.ClickStyle="Sink"
  153. pu:ButtonHelper.CornerRadius="10"
  154. pu:ButtonHelper.HoverBrush="#929FDE"
  155. BorderBrush="White"
  156. Command="{Binding UpdateSettingCommand}"
  157. Content="确认"
  158. Cursor="Hand"
  159. FontFamily="{StaticResource FontAwesome}"
  160. Foreground="White" />
  161. <Button
  162. Width="80"
  163. Height="25"
  164. Margin="10,0"
  165. pu:ButtonHelper.ButtonStyle="Hollow"
  166. pu:ButtonHelper.ClickStyle="Sink"
  167. pu:ButtonHelper.CornerRadius="10"
  168. pu:ButtonHelper.HoverBrush="#929FDE"
  169. BorderBrush="White"
  170. Command="{Binding CancelSettingUpdate}"
  171. Content="取消"
  172. Cursor="Hand"
  173. FontFamily="{StaticResource FontAwesome}"
  174. Foreground="White" />
  175. </StackPanel>
  176. </Border>
  177. </Grid>
  178. </Window>