|
- <Window
- x:Class="BPASmartClient.CustomResource.Pages.View.NfcSetView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.CustomResource.Pages.ViewModel"
- xmlns:common="clr-namespace:BPASmartClient.CustomResource.Pages.Model"
- Title="NfcSetView"
- Width="500"
- Height="250"
- AllowsTransparency="True"
- Background="{x:Null}"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None"
- mc:Ignorable="d">
-
- <Window.DataContext>
- <vm:NfcSetViewModel />
- </Window.DataContext>
-
- <Window.Resources>
- <Style x:Key="rbStyle" TargetType="RadioButton">
- <Setter Property="Foreground" Value="#32b8ff" />
- <Setter Property="Margin" Value="0,5,0,5" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="14" />
- <Setter Property="GroupName" Value="all" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="RadioButton">
- <Grid
- Name="gr"
- Background="Transparent"
- Opacity="0.8">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <ContentControl
- Name="cc"
- Grid.Column="1"
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
- VerticalAlignment="{TemplateBinding VerticalAlignment}"
- HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalContentAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}"
- FontSize="{TemplateBinding FontSize}" />
-
- <Grid Margin="0,0,4,0">
- <Ellipse
- Name="e2"
- Width="{Binding ElementName=cc, Path=ActualHeight}"
- Height="{Binding ElementName=cc, Path=ActualHeight}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Fill="Transparent"
- Stroke="{Binding ElementName=cc, Path=Foreground}"
- StrokeThickness="1" />
-
- <Ellipse
- Name="el"
- Width="{Binding ElementName=cc, Path=FontSize}"
- Height="{Binding ElementName=cc, Path=FontSize}"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Fill="Transparent"
- Stroke="{Binding ElementName=cc, Path=Foreground}"
- StrokeThickness="0" />
- </Grid>
-
- </Grid>
-
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="True">
- <Setter TargetName="el" Property="Fill" Value="#32b8ff" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="gr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <Style x:Key="buttonStyle" TargetType="Button">
- <Setter Property="Margin" Value="10" />
- <Setter Property="FontSize" Value="17" />
- <Setter Property="Foreground" Value="#32b8ff" />
- <Setter Property="FontWeight" Value="SemiBold" />
- <Setter Property="FontFamily" Value="楷体" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- Name="TitleBarBr"
- BorderBrush="#00c2f4"
- BorderThickness="0"
- Opacity="0.8">
-
- <ContentPresenter
- Margin="{TemplateBinding Margin}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Content="{TemplateBinding Content}" />
- <Border.Background>
- <ImageBrush ImageSource="../../Image/组 8.png" Stretch="Fill" />
- </Border.Background>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="TitleBarBr" Property="Opacity" Value="1" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
-
- <!--#region 密码输入框样式-->
- <Style x:Key="PasswordBoxStyle" TargetType="{x:Type PasswordBox}">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="FontFamily" Value="Times New Roman" />
- <Setter Property="PasswordChar" Value="●" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <Setter Property="KeyboardNavigation.TabNavigation" Value="None" />
- <Setter Property="HorizontalContentAlignment" Value="Left" />
- <Setter Property="Padding" Value="1" />
- <Setter Property="FocusVisualStyle" Value="{x:Null}" />
- <Setter Property="AllowDrop" Value="true" />
- <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst" />
- <Setter Property="Stylus.IsFlicksEnabled" Value="False" />
- <Setter Property="CaretBrush" Value="#009DFF" />
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="BorderBrush" Value="#009DFF" />
- <Setter Property="BorderThickness" Value="0,0,0,1" />
-
-
- </Style>
- <!--#endregion-->
-
- <!--#region 用户输入框样式-->
- <Style x:Key="UserTextBoxStyle" TargetType="TextBox">
- <Setter Property="Background" Value="Transparent" />
- <Setter Property="CaretBrush" Value="#009DFF" />
- <Setter Property="BorderBrush" Value="#009DFF"/>
- <Setter Property="BorderThickness" Value="0,0,0,1"/>
- <Setter Property="Foreground" Value="White"/>
- <Setter Property="FontSize" Value="14" />
- </Style>
- <!--#endregion-->
-
- </Window.Resources>
-
- <Grid>
- <Grid.Background>
- <ImageBrush ImageSource="../../Image/弹窗.png" Stretch="Fill" />
- </Grid.Background>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.5*" />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <Grid Background="Transparent">
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
- <TextBlock
- FontSize="16"
- Foreground="#32B8FF"
- Margin="0,0,0,10"
- Text="用户权限列表:" />
-
- <ItemsControl ItemsSource="{Binding permissions}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <Grid>
- <RadioButton
- Content="{Binding PermissionName}"
- IsChecked="{Binding PermissionSelected}"
- Style="{StaticResource rbStyle}" />
- </Grid>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
-
- </StackPanel>
-
- </Grid>
-
- <Grid Grid.Column="1">
- <Border
- Width="1"
- Margin="0,20,0,20"
- HorizontalAlignment="Left">
- <Border.Background>
- <LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
- <GradientStop Color="#FF0B2E56" />
- <GradientStop Offset="1" Color="#FF0B2E56" />
- <GradientStop Offset="0.58" Color="#FF32B8FF" />
- </LinearGradientBrush>
- </Border.Background>
- </Border>
-
- <Grid Margin="10,30,30,30">
-
-
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition Height="0.25*" />
- </Grid.RowDefinitions>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="92*"/>
- <ColumnDefinition Width="135*"/>
- <ColumnDefinition Width="67*"/>
- </Grid.ColumnDefinitions>
- <TextBlock
- HorizontalAlignment="Center"
- FontSize="16"
- VerticalAlignment="Center"
- Foreground="#FF32B8FF"
- Text="当前卡号:" Height="21" Width="80" />
-
- <TextBlock Grid.Row="1"
- HorizontalAlignment="Center"
- FontSize="16"
- VerticalAlignment="Center"
- Foreground="#FF32B8FF"
- Text="用户名:" Height="20" Width="64" />
- <TextBlock Grid.Row="2"
- HorizontalAlignment="Center"
- FontSize="16"
- VerticalAlignment="Center"
- Foreground="#FF32B8FF"
- Text="当前密码:" Height="20" Width="80" />
- <TextBlock Grid.Row="3"
- HorizontalAlignment="Center"
- FontSize="16"
- VerticalAlignment="Center"
- Foreground="#FF32B8FF"
- Text="确认密码:" Height="20" Width="80" />
-
- <TextBlock Grid.Column="1"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- Foreground="#FF32B8FF"
- Text="{Binding CardNum}" />
-
- <TextBox Grid.Row="1" Grid.Column="1"
- Margin="11,4,10,4"
- Text="{Binding UserName}"
- Style="{DynamicResource UserTextBoxStyle}"/>
-
- <PasswordBox Grid.Column="1" Grid.Row="2"
- Name="newpb1"
- Margin="11,4,10,4"
- common:PasswordHelper.Attach="True"
- common:PasswordHelper.Password="{Binding CurrentPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- BorderBrush="#009DFF"
- FontSize="16"
- Foreground="#aadddddd"
- Style="{DynamicResource PasswordBoxStyle}"
- TabIndex="2" />
- <PasswordBox Grid.Column="1" Grid.Row="3"
- Name="newpb2"
- Margin="11,4,10,4"
- common:PasswordHelper.Attach="True"
- common:PasswordHelper.Password="{Binding CheckPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
- BorderBrush="#009DFF"
- FontSize="16"
- Foreground="#aadddddd"
- Style="{DynamicResource PasswordBoxStyle}"
- TabIndex="2" />
-
- <TextBlock Grid.Row="2" Grid.Column="2"
- HorizontalAlignment="Center"
- FontSize="10"
- VerticalAlignment="Center"
- Foreground="#FF32B8FF"
- Text="(默认888888)" Height="12" Width="62" />
-
- <TextBlock Grid.Row="4" Grid.ColumnSpan="3" Grid.Column="0"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- FontSize="16"
- Foreground="#FFF53F62"
- Text="{Binding Info}" />
- </Grid>
-
-
-
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <Button VerticalAlignment="Center"
- HorizontalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- Content="用户添加"
- FontSize="16"
- Style="{DynamicResource ButtonStyle}"
- Command="{Binding UserAddCommand}"/>
-
- <Button Grid.Column="1"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"
- Content="用户注销"
- FontSize="16"
- Style="{DynamicResource ButtonStyle}"
- Command="{Binding UserCancelCommand}"/>
-
-
-
- </Grid>
- </Grid>
-
- <Border
- Width="20"
- Height="20"
- Margin="0,18,18,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Background="Transparent"
- MouseLeftButtonDown="Border_MouseLeftButtonDown" />
-
- </Grid>
-
- </Grid>
- </Window>
|