PF.UI.Controls 1.1.0

dotnet add package PF.UI.Controls --version 1.1.0
                    
NuGet\Install-Package PF.UI.Controls -Version 1.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="PF.UI.Controls" Version="1.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="PF.UI.Controls" Version="1.1.0" />
                    
Directory.Packages.props
<PackageReference Include="PF.UI.Controls" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add PF.UI.Controls --version 1.1.0
                    
#r "nuget: PF.UI.Controls, 1.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package PF.UI.Controls@1.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=PF.UI.Controls&version=1.1.0
                    
Install as a Cake Addin
#tool nuget:?package=PF.UI.Controls&version=1.1.0
                    
Install as a Cake Tool

PF.UI.Controls

PF.UI 组件库的自定义控件层。依赖 PF.UI.Shared,本身不含视觉样式(样式定义在 PF.UI.Resources 中),需配合该包的主题字典使用才能看到 预期外观。

安装

dotnet add package PF.UI.Controls
dotnet add package PF.UI.Resources   # 提供样式,二者需搭配使用

控件分类

目录 内容
Attach/ 附加属性(BorderElement、TitleElement、WindowAttach 等)
Base/ 基础控件封装
Block/ ToggleBlock 等块状控件
Button/ 各类按钮(含 SplitButton、ProgressButton)
Drawer/ 侧边抽屉容器
Growl/ 消息通知(Growl、GrowlWindow)
Image/ ImageViewer、ImageSelector
Input/ AutoCompleteTextBox、CheckComboBox、SearchComboBox 等增强输入控件
Loading/ 加载指示器(LoadingLine、LoadingCircle)
Other/ Notification、PackIcon、Ripple、Poptip、DialogFrame/Overlay 等
Panel/ 布局面板
PropertyGrid/ 属性网格
Ribbon/ 功能区控件
Screenshot/ 截图窗口
SideMenu/ 侧边导航菜单
Slider/ RangeSlider、CompareSlider
StepBar/ 步骤条
TabControl/ 增强 TabControl
Tag/ 标签/徽章类控件(Chip、Tag、Badge)
Text/ 文本效果、高亮文本块
Time/ Clock、FlipClock、TimeBar 等时间类控件
Window/ GlowWindow、BlurWindow、自定义 Window 基类、PopupWindow

Interactivity/ 目录额外提供移植自 Expression.Interactions / Windows.Interactivity 的行为 (EventToCommand 及内置命令:CloseWindowCommand、ShutdownAppCommand 等)。

依赖链

PF.UI.Controls → PF.UI.Shared

零第三方 NuGet 运行时依赖。

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on PF.UI.Controls:

Package Downloads
PF.UI.Resources

WPF 主题资源:深色/浅色主题字典、全局字体机制(GlobalFontFamily)、图标资源

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.0 143 7/31/2026
1.0.2 110 7/31/2026
1.0.1 116 7/14/2026

v1.1.0 — 多语言适配 + CalendarWithListClock 区域性修复

[行为变更]
- CalendarWithListClock 内部 Calendar 不再写死 Language="zh-CN" 与
 FirstDayOfWeek=Sunday。此前该控件被永久锁定为中文(Calendar 一旦被显式赋过
 Language 就会忽略 CurrentCulture),且一周起始日与同库 CalendarWithClock 不一致。
 现改为跟随当前区域性:中文环境下星期行由「日一二三四五六」变为「一二三四五六日」,
 若需固定周日开头请在使用处显式设置 FirstDayOfWeek。

[多语言]
- PopupWindow 默认标题、ImageViewer 的保存对话框筛选器与尺寸错误提示改经
 PF.UI.Shared 的 LanguageManager 取用,与 XAML 共用同一份文案字典。
 ImageViewer 的筛选器改为每次弹窗前现取,不再在静态构造中固化。


v1.0.1 (2026-07-03) — LoadingLine 掉帧修复

[性能修复]
- LoadingLine 圆点位移动画由 Margin(依赖动画,每帧强制 UI 线程重新 Measure/Arrange)
 改为 RenderTransform 上的 TranslateTransform.X(独立动画,走渲染线程),
 消除 Splash 等宿主场景下动画掉帧、不跟手的问题;起始错位仍由 Margin 静态设置
 一次,不再参与逐帧动画。写法对齐同目录 LoadingCircle(RotateTransform.Angle)
 已验证可行的独立动画模式。

v1.0.0 - 初始版本