添加项目文件。
This commit is contained in:
78
SamplePreSystem.UI/Views/MainView/UserInfoWindow.xaml
Normal file
78
SamplePreSystem.UI/Views/MainView/UserInfoWindow.xaml
Normal file
@@ -0,0 +1,78 @@
|
||||
<basewindows:BaseWindow
|
||||
x:Class="SamplePreSystem.UI.Views.UserInfoWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:basewindows="clr-namespace:SamplePre.UIWpf.BaseWindows"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="用户信息"
|
||||
Width="300"
|
||||
Height="200"
|
||||
AllowsTransparency="True"
|
||||
Background="Transparent"
|
||||
ResizeMode="NoResize"
|
||||
WindowStartupLocation="CenterScreen"
|
||||
WindowStyle="None"
|
||||
mc:Ignorable="d">
|
||||
<basewindows:BaseWindow.Resources>
|
||||
<Style
|
||||
x:Key="CloseButtonStyle"
|
||||
BasedOn="{StaticResource MaterialDesignFlatMidBgButton}"
|
||||
TargetType="Button">
|
||||
<Setter Property="Width" Value="24" />
|
||||
<Setter Property="Height" Value="24" />
|
||||
<Setter Property="Padding" Value="0" />
|
||||
<Style.Triggers>
|
||||
<Trigger Property="IsMouseOver" Value="True">
|
||||
<Setter Property="Background" Value="DarkRed" />
|
||||
<Setter Property="Foreground" Value="White" />
|
||||
<Setter Property="Cursor" Value="Hand" />
|
||||
</Trigger>
|
||||
</Style.Triggers>
|
||||
</Style>
|
||||
</basewindows:BaseWindow.Resources>
|
||||
<Grid>
|
||||
<Border
|
||||
Margin="10"
|
||||
Background="White"
|
||||
CornerRadius="12">
|
||||
<!--<Border.Effect>
|
||||
<DropShadowEffect
|
||||
BlurRadius="20"
|
||||
Opacity="0.2"
|
||||
ShadowDepth="0" />
|
||||
</Border.Effect>-->
|
||||
<Grid>
|
||||
<!-- 内容区域 -->
|
||||
<StackPanel
|
||||
Grid.Row="1"
|
||||
Margin="5"
|
||||
VerticalAlignment="Center">
|
||||
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
|
||||
<TextBlock
|
||||
Width="80"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Text="用户名称:" />
|
||||
<TextBlock
|
||||
x:Name="txtUserName"
|
||||
FontSize="14"
|
||||
Text="{Binding UserName}" />
|
||||
</StackPanel>
|
||||
<StackPanel Margin="0,10,0,0" Orientation="Horizontal">
|
||||
<TextBlock
|
||||
Width="80"
|
||||
FontSize="14"
|
||||
FontWeight="Bold"
|
||||
Text="角色:" />
|
||||
<TextBlock
|
||||
x:Name="txtUserRoles"
|
||||
FontSize="14"
|
||||
Text="{Binding UserRoles}" />
|
||||
</StackPanel>
|
||||
</StackPanel>
|
||||
</Grid>
|
||||
</Border>
|
||||
</Grid>
|
||||
</basewindows:BaseWindow>
|
||||
Reference in New Issue
Block a user