Extended.Wpf.Toolkit.PropertyGrid.FluentTheme
0.0.2
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.8
This package targets .NET Framework 4.8. The package is compatible with this framework or higher.
dotnet add package Extended.Wpf.Toolkit.PropertyGrid.FluentTheme --version 0.0.2
NuGet\Install-Package Extended.Wpf.Toolkit.PropertyGrid.FluentTheme -Version 0.0.2
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="Extended.Wpf.Toolkit.PropertyGrid.FluentTheme" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Extended.Wpf.Toolkit.PropertyGrid.FluentTheme" Version="0.0.2" />
<PackageReference Include="Extended.Wpf.Toolkit.PropertyGrid.FluentTheme" />
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 Extended.Wpf.Toolkit.PropertyGrid.FluentTheme --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Extended.Wpf.Toolkit.PropertyGrid.FluentTheme, 0.0.2"
#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 Extended.Wpf.Toolkit.PropertyGrid.FluentTheme@0.0.2
#: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=Extended.Wpf.Toolkit.PropertyGrid.FluentTheme&version=0.0.2
#tool nuget:?package=Extended.Wpf.Toolkit.PropertyGrid.FluentTheme&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Extended.Wpf.Toolkit.PropertyGrid.FluentTheme
Fluent Design 风格主题 for Extended WPF Toolkit PropertyGrid 控件。
支持两种 Fluent 主题后端:
- .NET 10 原生 Fluent 主题(
PresentationFramework.Fluent,零第三方依赖) - wpf-ui 库(wpf-ui NuGet 包)
效果
- Fluent Design System 的 Light/Dark 主题
- PropertyGrid 所有子控件(数字输入、日期选择、下拉框、颜色选择、集合编辑等)统一 Fluent 风格
- 内置 Fluent System Icons 字体,图标渲染零外部依赖
- 支持 Mica 亚克力半透明背景
安装
dotnet add package Extended.Wpf.Toolkit.PropertyGrid.FluentTheme
依赖项(自动安装):
Extended.Wpf.Toolkit≥ 5.1.2
使用
方式一:.NET 10 原生 Fluent 主题(推荐)
零第三方 UI 库依赖,使用 .NET 10 内置的 PresentationFramework.Fluent。
在 App.xaml 中添加ThemeMode,加载主题:
ThemeMode="Dark/Light"
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="/Extended.Wpf.Toolkit.PropertyGrid.FluentTheme;component/Themes/PropertyGridTheme.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
仅限 .NET 10 项目使用。
PresentationFramework.Fluent是 .NET 10 内置的 WPF Fluent 主题程序集。
方式二:wpf-ui 库
使用 wpf-ui NuGet 包提供 Fluent 主题资源。
在 App.xaml 中加载主题(在 wpfui 主题之后):
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ui:ThemesDictionary Theme="Light" />
<ui:ControlsDictionary />
<ResourceDictionary Source="/Extended.Wpf.Toolkit.PropertyGrid.FluentTheme;component/Themes/PropertyGridTheme.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
PropertyGrid 即可自动获得 Fluent 主题样式,无需额外配置。
Mica 效果
配合 wpfui FluentWindow 使用 Mica 亚克力效果:
<ui:FluentWindow WindowBackdropType="Mica">
<xctk:PropertyGrid ... />
</ui:FluentWindow>
PropertyGrid 默认 Background="Transparent",不画像素,Mica 自然穿透。
自定义背景
如需替换背景色,直接在 PropertyGrid 上设本地值:
<xctk:PropertyGrid Background="{DynamicResource CardBackgroundFillColorDefaultBrush}" ... />
覆盖范围
| 控件 | 描述 |
|---|---|
| PropertyGrid | 完整 ControlTemplate + Fluent Expander / 搜索框 |
| PropertyItemBase | 行高 32px、hover/选中高亮、Mica 背景链 |
| NumericUpDown | Byte/Short/Int/Long/Single/Double/Decimal/UShort/UInt/ULong,水平箭头 |
| DateTimeUpDown | 日期选择,水平箭头 |
| TimeSpanUpDown | 时间跨度选择,水平箭头 |
| TimePicker | 时间选择,水平箭头 |
| ColorPicker | 颜色选择 |
| ComboBox / CheckBox | 编辑器下拉、复选框 |
| EnumCheckComboBox | 枚举多选 |
| TextBox / TextBlock | 文本编辑器 |
| CollectionControl | 集合编辑(列表增删排序 + 内嵌 PropertyGrid) |
| PrimitiveTypeCollectionControl | 简单类型集合(字符串等) |
| MultiLineTextEditor | 多行文本编辑器(Popup 样式) |
| CollectionControlDialog | 弹窗主题 |
| WindowControl | 窗口控件 |
兼容性
| 平台 | .NET 10 原生 Fluent | wpf-ui |
|---|---|---|
| .NET Framework 4.8 | — | ✓ |
| .NET 8.0 (Windows) | — | ✓ |
| .NET 9.0 (Windows) | — | ✓ |
| .NET 10 (Windows) | ✓ | ✓ |
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net9.0-windows7.0 is compatible. net10.0-windows was computed. net10.0-windows7.0 is compatible. |
| .NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.8
- Extended.Wpf.Toolkit (>= 5.1.2)
-
net10.0-windows7.0
- Extended.Wpf.Toolkit (>= 5.1.2)
-
net8.0-windows7.0
- Extended.Wpf.Toolkit (>= 5.1.2)
-
net9.0-windows7.0
- Extended.Wpf.Toolkit (>= 5.1.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.0.2 | 98 | 9/23/2026 |