ColorVision.Themes 1.5.7.2

dotnet add package ColorVision.Themes --version 1.5.7.2
                    
NuGet\Install-Package ColorVision.Themes -Version 1.5.7.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="ColorVision.Themes" Version="1.5.7.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.Themes" Version="1.5.7.2" />
                    
Directory.Packages.props
<PackageReference Include="ColorVision.Themes" />
                    
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 ColorVision.Themes --version 1.5.7.2
                    
#r "nuget: ColorVision.Themes, 1.5.7.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 ColorVision.Themes@1.5.7.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=ColorVision.Themes&version=1.5.7.2
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.Themes&version=1.5.7.2
                    
Install as a Cake Tool

ColorVision.Themes

Windows WPF 主题资源与窗口外观支持包,附带基础控件和转换器。目标框架、依赖和包版本以 ColorVision.Themes.csproj 为准。

主题选择、资源注入、系统跟随、标题栏生命周期及配置边界的单一说明是 主题选择、资源应用与窗口外观(ui.themes)。此相对链接面向源码仓库;从 NuGet 阅读时,请按包版本在项目源码中查看对应文档,不把当前分支契约直接套用到旧包。

包接入

使用 ColorVision.Themes 命名空间。已有宿主初始化资源时,通过 Application.ApplyTheme 选择主题,调用 Window.ApplyCaption 接入标题栏;二者的选择/实际状态及失败语义见权威主题。

在 App.xaml 合并 /ColorVision.Themes;component/Themes/Theme.xaml 可预载默认浅色资源。空白 WPF 宿主也可以直接选择跟随系统,由管理器完成首次初始化:

using ColorVision.Themes;
using System.Windows;

Application.Current.ApplyTheme(Theme.UseSystem);

Themes 包本身不保存主题配置。ThemeConfig / ThemePropertiesEditor 是 ColorVision.UI 中的集成,不是只引用此包就具备的自动持久化能力。

本地构建

从仓库根目录在 Windows PowerShell 执行;需要对应 SDK/WPF 构建环境,依赖未还原时可能联网。该命令写入本地产物,并按项目配置生成包,不安装、不上传或切换系统主题。

dotnet build .\UI\ColorVision.Themes\ColorVision.Themes.csproj -p:Platform=x64

发布请使用仓库的 UI DLL 发布契约,不要把本地包生成当成已发布。

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.  net10.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on ColorVision.Themes:

Package Downloads
ColorVision.UI

Package Description

ColorVision.ImageEditor

Package Description

ColorVision.Common

Package Description

ColorVision.Scheduler

Package Description

ColorVision.Rbac

ColorVision user, role, permission, session, and audit management for WPF applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.7.2 72 10/7/2026
1.5.7.1 242 7/23/2026
1.5.6.1 156 7/8/2026
1.5.5.3 146 6/2/2026
1.5.5.2 157 5/31/2026
1.5.5.1 169 4/13/2026
1.5.4.1 144 3/31/2026
1.5.1.2 132 3/31/2026
1.5.1.1 179 2/16/2026
1.4.1.1 162 2/3/2026
1.3.10.1 171 1/14/2026
1.3.8.3 365 10/17/2025
1.3.8.2 250 9/30/2025
1.3.8.1 286 9/25/2025
1.3.7.1 291 9/21/2025
1.3.6.1 231 9/5/2025
1.3.5.1 325 8/24/2025
1.3.4.1 241 8/18/2025
1.3.2.2 288 6/3/2025
1.3.2.1 231 6/2/2025
Loading failed