SettingForm.xaml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <Window
  2. x:Class="SHJX.Service.View.View.SettingForm"
  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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
  8. Title="设置"
  9. Width="820"
  10. Height="800"
  11. AllowsTransparency="True"
  12. Background="Transparent"
  13. ResizeMode="NoResize"
  14. WindowStartupLocation="CenterScreen"
  15. WindowStyle="None"
  16. mc:Ignorable="d">
  17. <Grid>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="0.7*" />
  20. <RowDefinition Height="0.8*" />
  21. <RowDefinition Height="12*" />
  22. <RowDefinition Height="1*" />
  23. </Grid.RowDefinitions>
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="1*" />
  26. </Grid.ColumnDefinitions>
  27. <Border Grid.Row="0"
  28. Grid.RowSpan="4"
  29. BorderThickness="3"
  30. Margin="5"
  31. Background="White"
  32. BorderBrush="#99CCCC">
  33. <Border.Effect>
  34. <DropShadowEffect Color="#CCCCCC" BlurRadius="10" ShadowDepth="0" Opacity="0.8">
  35. </DropShadowEffect>
  36. </Border.Effect>
  37. </Border>
  38. <Border Grid.Row="0" Background="#99CCCC" Margin="5" />
  39. <Grid
  40. x:Name="SettingTag"
  41. Grid.Row="0"
  42. MouseLeftButtonDown="SettingTag_MouseLeftButtonDown">
  43. <TextBlock
  44. Margin="10,0,0,0"
  45. VerticalAlignment="Center"
  46. FontSize="13"
  47. FontWeight="Black"
  48. Foreground="White"
  49. Text="设置" />
  50. <Button
  51. x:Name="btn_setting_close"
  52. Width="25"
  53. Height="25"
  54. Margin="0,0,10,0"
  55. Padding="0"
  56. HorizontalAlignment="Right"
  57. pu:ButtonHelper.ButtonStyle="Hollow"
  58. pu:ButtonHelper.ClickStyle="Sink"
  59. pu:ButtonHelper.CornerRadius="20"
  60. pu:ButtonHelper.HoverBrush="#66CCCC"
  61. Background="Transparent"
  62. BorderBrush="Transparent"
  63. Click="btn_setting_close_Click"
  64. Cursor="Hand">
  65. <Image
  66. Width="25"
  67. Height="25"
  68. Source="/SHJX.Service.Resource;component/Resources/关闭.png" />
  69. </Button>
  70. </Grid>
  71. <!--<ListBox Grid.Row="0" Grid.Column="0" BorderThickness="1,1,1,0" BorderBrush="#666666" />-->
  72. <TabControl
  73. Cursor="Hand"
  74. x:Name="Menu"
  75. Grid.Row="1"
  76. Margin="20,5"
  77. HorizontalAlignment="Stretch"
  78. VerticalAlignment="Bottom"
  79. pu:TabControlHelper.SelectedForeground="#66CCCC"
  80. BorderBrush="#99CCCC"
  81. Foreground="#99CCCC"
  82. SelectionChanged="Menu_SelectionChanged" />
  83. <ScrollViewer
  84. Grid.Row="2"
  85. HorizontalAlignment="Stretch"
  86. BorderBrush="#666666"
  87. BorderThickness="0"
  88. HorizontalScrollBarVisibility="Disabled"
  89. VerticalScrollBarVisibility="Auto">
  90. <StackPanel
  91. x:Name="StackPanelMain"
  92. Grid.Row="1"
  93. Grid.Column="0"
  94. HorizontalAlignment="Stretch" />
  95. </ScrollViewer>
  96. <Border
  97. Grid.Row="3"
  98. Grid.Column="0"
  99. BorderBrush="#99CCCC"
  100. BorderThickness="0,1,0,0">
  101. <Border.Effect>
  102. <DropShadowEffect
  103. BlurRadius="3"
  104. Opacity="0.3"
  105. ShadowDepth="0.5"
  106. Color="#99CCCC" />
  107. </Border.Effect>
  108. <Grid>
  109. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  110. <Button
  111. Width="80"
  112. Height="30"
  113. Margin="5,0"
  114. pu:ButtonHelper.CornerRadius="10"
  115. pu:ButtonHelper.HoverBrush="#66CCCC"
  116. Background="#99CCCC"
  117. Command="{Binding UpdateSettingInfoCommand}"
  118. Content="确定"
  119. Cursor="Hand"
  120. FontFamily="{StaticResource FontAwesome}"
  121. Foreground="White" />
  122. <Button
  123. x:Name="Cancel"
  124. Width="80"
  125. Height="30"
  126. Margin="5,0,20,0"
  127. pu:ButtonHelper.CornerRadius="10"
  128. pu:ButtonHelper.HoverBrush="#66CCCC"
  129. Background="#99CCCC"
  130. Click="Cancel_Click"
  131. Content="取消"
  132. Cursor="Hand"
  133. FontFamily="{StaticResource FontAwesome}"
  134. Foreground="White" />
  135. </StackPanel>
  136. </Grid>
  137. </Border>
  138. </Grid>
  139. </Window>