XWT.Theme.Fluent.PropertyGrid 1.0.6

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package XWT.Theme.Fluent.PropertyGrid --version 1.0.6
                    
NuGet\Install-Package XWT.Theme.Fluent.PropertyGrid -Version 1.0.6
                    
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="XWT.Theme.Fluent.PropertyGrid" Version="1.0.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XWT.Theme.Fluent.PropertyGrid" Version="1.0.6" />
                    
Directory.Packages.props
<PackageReference Include="XWT.Theme.Fluent.PropertyGrid" />
                    
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 XWT.Theme.Fluent.PropertyGrid --version 1.0.6
                    
#r "nuget: XWT.Theme.Fluent.PropertyGrid, 1.0.6"
                    
#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 XWT.Theme.Fluent.PropertyGrid@1.0.6
                    
#: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=XWT.Theme.Fluent.PropertyGrid&version=1.0.6
                    
Install as a Cake Addin
#tool nuget:?package=XWT.Theme.Fluent.PropertyGrid&version=1.0.6
                    
Install as a Cake Tool

XWT Theme — Fluent PropertyGrid

wpfui Fluent Design 风格主题 for Xceed WPF Toolkit PropertyGrid 控件。

NuGet

效果

  • 基于 wpfui Fluent Design System 的 Light/Dark 主题
  • PropertyGrid 所有子控件(数字输入、日期选择、下拉框、颜色选择、集合编辑等)统一 wpfui 风格
  • 支持 Mica 亚克力半透明背景(配合 wpfui FluentWindow)

安装

dotnet add package XWT.Theme.Fluent.PropertyGrid

依赖项(自动安装):

  • Extended.Wpf.Toolkit ≥ 5.1.2
  • WPF-UI ≥ 4.3.0

使用

在 App.xaml 中加载主题(在 wpfui 主题之后):

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ui:ThemesDictionary Theme="Light" />
            <ui:ControlsDictionary />
            <ResourceDictionary Source="/XWT.Theme.Fluent.PropertyGrid;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 + wpfui 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 wpfui 窗口控件

兼容性

平台 支持
.NET Framework 4.8 ✓
.NET 8.0 (Windows) ✓
.NET 9.0 (Windows) ✓

License

MIT

Product 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. 
.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.

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