终端一体化运控平台
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 

243 rader
10 KiB

  1. <Window
  2. x:Class="BPASmartClient.CustomResource.Pages.View.NfcSetView"
  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:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:vm="clr-namespace:BPASmartClient.CustomResource.Pages.ViewModel"
  9. Title="NfcSetView"
  10. Width="500"
  11. Height="250"
  12. AllowsTransparency="True"
  13. Background="{x:Null}"
  14. Topmost="True"
  15. WindowStartupLocation="CenterScreen"
  16. WindowStyle="None"
  17. mc:Ignorable="d">
  18. <Window.DataContext>
  19. <vm:NfcSetViewModel />
  20. </Window.DataContext>
  21. <Window.Resources>
  22. <Style x:Key="rbStyle" TargetType="RadioButton">
  23. <Setter Property="Foreground" Value="#32b8ff" />
  24. <Setter Property="Margin" Value="0,5,0,5" />
  25. <Setter Property="HorizontalAlignment" Value="Center" />
  26. <Setter Property="FontSize" Value="14" />
  27. <Setter Property="GroupName" Value="all" />
  28. <Setter Property="Template">
  29. <Setter.Value>
  30. <ControlTemplate TargetType="RadioButton">
  31. <Grid
  32. Name="gr"
  33. Background="Transparent"
  34. Opacity="0.8">
  35. <Grid.ColumnDefinitions>
  36. <ColumnDefinition Width="Auto" />
  37. <ColumnDefinition />
  38. </Grid.ColumnDefinitions>
  39. <ContentControl
  40. Name="cc"
  41. Grid.Column="1"
  42. Margin="{TemplateBinding Margin}"
  43. HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
  44. VerticalAlignment="{TemplateBinding VerticalAlignment}"
  45. HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
  46. VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
  47. Content="{TemplateBinding Content}"
  48. FontSize="{TemplateBinding FontSize}" />
  49. <Grid Margin="0,0,4,0">
  50. <Ellipse
  51. Name="e2"
  52. Width="{Binding ElementName=cc, Path=ActualHeight}"
  53. Height="{Binding ElementName=cc, Path=ActualHeight}"
  54. HorizontalAlignment="Center"
  55. VerticalAlignment="Center"
  56. Fill="Transparent"
  57. Stroke="{Binding ElementName=cc, Path=Foreground}"
  58. StrokeThickness="1" />
  59. <Ellipse
  60. Name="el"
  61. Width="{Binding ElementName=cc, Path=FontSize}"
  62. Height="{Binding ElementName=cc, Path=FontSize}"
  63. HorizontalAlignment="Center"
  64. VerticalAlignment="Center"
  65. Fill="Transparent"
  66. Stroke="{Binding ElementName=cc, Path=Foreground}"
  67. StrokeThickness="0" />
  68. </Grid>
  69. </Grid>
  70. <ControlTemplate.Triggers>
  71. <Trigger Property="IsChecked" Value="True">
  72. <Setter TargetName="el" Property="Fill" Value="#32b8ff" />
  73. </Trigger>
  74. <Trigger Property="IsMouseOver" Value="True">
  75. <Setter TargetName="gr" Property="Opacity" Value="1" />
  76. </Trigger>
  77. </ControlTemplate.Triggers>
  78. </ControlTemplate>
  79. </Setter.Value>
  80. </Setter>
  81. </Style>
  82. <Style x:Key="buttonStyle" TargetType="Button">
  83. <Setter Property="Margin" Value="10" />
  84. <Setter Property="FontSize" Value="17" />
  85. <Setter Property="Foreground" Value="#32b8ff" />
  86. <Setter Property="FontWeight" Value="SemiBold" />
  87. <Setter Property="FontFamily" Value="楷体" />
  88. <Setter Property="Template">
  89. <Setter.Value>
  90. <ControlTemplate TargetType="Button">
  91. <Border
  92. Name="TitleBarBr"
  93. BorderBrush="#00c2f4"
  94. BorderThickness="0"
  95. Opacity="0.8">
  96. <ContentPresenter
  97. Margin="{TemplateBinding Margin}"
  98. HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  99. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  100. Content="{TemplateBinding Content}" />
  101. <Border.Background>
  102. <ImageBrush ImageSource="../../Image/组 8.png" Stretch="Fill" />
  103. </Border.Background>
  104. </Border>
  105. <ControlTemplate.Triggers>
  106. <Trigger Property="IsMouseOver" Value="true">
  107. <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
  108. </Trigger>
  109. </ControlTemplate.Triggers>
  110. </ControlTemplate>
  111. </Setter.Value>
  112. </Setter>
  113. </Style>
  114. </Window.Resources>
  115. <Grid>
  116. <Grid.Background>
  117. <ImageBrush ImageSource="../../Image/弹窗.png" Stretch="Fill" />
  118. </Grid.Background>
  119. <Grid.ColumnDefinitions>
  120. <ColumnDefinition Width="0.5*" />
  121. <ColumnDefinition />
  122. </Grid.ColumnDefinitions>
  123. <Grid Background="Transparent">
  124. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  125. <TextBlock
  126. FontSize="16"
  127. Foreground="#32B8FF"
  128. Text="用户权限列表:" />
  129. <ItemsControl ItemsSource="{Binding permissions}">
  130. <ItemsControl.ItemTemplate>
  131. <DataTemplate>
  132. <Grid>
  133. <RadioButton
  134. Content="{Binding PermissionName}"
  135. IsChecked="{Binding PermissionSelected}"
  136. Style="{StaticResource rbStyle}" />
  137. </Grid>
  138. </DataTemplate>
  139. </ItemsControl.ItemTemplate>
  140. </ItemsControl>
  141. </StackPanel>
  142. </Grid>
  143. <Grid Grid.Column="1">
  144. <Border
  145. Width="1"
  146. Margin="0,20,0,20"
  147. HorizontalAlignment="Left">
  148. <Border.Background>
  149. <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
  150. <GradientStop Color="#FF0B2E56" />
  151. <GradientStop Offset="1" Color="#FF0B2E56" />
  152. <GradientStop Offset="0.58" Color="#FF32B8FF" />
  153. </LinearGradientBrush>
  154. </Border.Background>
  155. </Border>
  156. <Grid Margin="10,30,30,30">
  157. <Grid.RowDefinitions>
  158. <RowDefinition />
  159. <RowDefinition Height="0.5*" />
  160. </Grid.RowDefinitions>
  161. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  162. <StackPanel Margin="0,5,0,5" Orientation="Horizontal">
  163. <TextBlock
  164. HorizontalAlignment="Center"
  165. FontSize="16"
  166. Foreground="#FF32B8FF"
  167. Text="当前卡号:" />
  168. <TextBlock
  169. HorizontalAlignment="Center"
  170. FontSize="16"
  171. Foreground="#FF32B8FF"
  172. Text="{Binding CardNum}" />
  173. </StackPanel>
  174. <TextBlock
  175. Margin="0,5,0,5"
  176. HorizontalAlignment="Center"
  177. FontSize="16"
  178. Foreground="#FFF53F62"
  179. Text="{Binding Info}" />
  180. </StackPanel>
  181. <Grid Grid.Row="1">
  182. <Grid.ColumnDefinitions>
  183. <ColumnDefinition />
  184. <ColumnDefinition />
  185. </Grid.ColumnDefinitions>
  186. <RadioButton
  187. VerticalAlignment="Center"
  188. Content="用户添加"
  189. GroupName="add"
  190. IsChecked="{Binding UserAdd}"
  191. Style="{StaticResource rbStyle}" />
  192. <RadioButton
  193. Grid.Column="1"
  194. VerticalAlignment="Center"
  195. Content="用户注销"
  196. GroupName="add"
  197. IsChecked="{Binding UserCnange}"
  198. Style="{StaticResource rbStyle}" />
  199. </Grid>
  200. </Grid>
  201. <Border
  202. Width="20"
  203. Height="20"
  204. Margin="0,18,18,0"
  205. HorizontalAlignment="Right"
  206. VerticalAlignment="Top"
  207. Background="Transparent"
  208. MouseLeftButtonDown="Border_MouseLeftButtonDown" />
  209. </Grid>
  210. </Grid>
  211. </Window>