添加项目文件。

This commit is contained in:
2026-04-30 11:34:41 +08:00
parent a8539ccaac
commit 80635aa46e
181 changed files with 16378 additions and 0 deletions

View 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>