|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242 |
- <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"
- 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>
-
- </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"
- 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.5*" />
- </Grid.RowDefinitions>
-
- <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
-
- <StackPanel Margin="0,5,0,5" Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- FontSize="16"
- Foreground="#FF32B8FF"
- Text="当前卡号:" />
-
- <TextBlock
- HorizontalAlignment="Center"
- FontSize="16"
- Foreground="#FF32B8FF"
- Text="{Binding CardNum}" />
- </StackPanel>
-
- <TextBlock
- Margin="0,5,0,5"
- HorizontalAlignment="Center"
- FontSize="16"
- Foreground="#FFF53F62"
- Text="{Binding Info}" />
-
- </StackPanel>
-
- <Grid Grid.Row="1">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <RadioButton
- VerticalAlignment="Center"
- Content="用户添加"
- GroupName="add"
- IsChecked="{Binding UserAdd}"
- Style="{StaticResource rbStyle}" />
-
- <RadioButton
- Grid.Column="1"
- VerticalAlignment="Center"
- Content="用户注销"
- GroupName="add"
- IsChecked="{Binding UserCnange}"
- Style="{StaticResource rbStyle}" />
- </Grid>
- </Grid>
-
- <Border
- Width="20"
- Height="20"
- Margin="0,18,18,0"
- HorizontalAlignment="Right"
- VerticalAlignment="Top"
- Background="Transparent"
- MouseLeftButtonDown="Border_MouseLeftButtonDown" />
-
- </Grid>
-
- </Grid>
- </Window>
|