ColorVision.Themes 1.5.6.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ColorVision.Themes --version 1.5.6.1
                    
NuGet\Install-Package ColorVision.Themes -Version 1.5.6.1
                    
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.6.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ColorVision.Themes" Version="1.5.6.1" />
                    
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.6.1
                    
#r "nuget: ColorVision.Themes, 1.5.6.1"
                    
#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.6.1
                    
#: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.6.1
                    
Install as a Cake Addin
#tool nuget:?package=ColorVision.Themes&version=1.5.6.1
                    
Install as a Cake Tool

ColorVision.Themes

版本: 1.5.5.1 | 目标框架: .NET 8.0 / .NET 10.0 Windows

功能定位

主题管理和样式系统,提供五种预设主题(系统/浅色/深色/粉色/青色)、自定义控件、值转换器和窗口样式。

主要功能

主题管理

  • ThemeManager — 主题切换核心类,支持运行时动态切换
  • 五种主题 — UseSystem / Light / Dark / Pink / Cyan
  • 系统主题跟随 — 自动适配 Windows 系统主题
  • 标题栏颜色 — SetWindowTitleBarColor 匹配主题
  • 配置持久化 — 主题选择自动保存

主题资源

资源文件 说明
Base.xaml 基础共享样式
Dark.xaml 深色主题
White.xaml 浅色主题
Pink.xaml 粉色主题(标题栏 #E8A6C1)
Cyan.xaml 青色主题(标题栏 #00796B)
Menu.xaml / GroupBox.xaml / Icons.xaml 通用控件样式

自定义控件

  • MessageBox — 主题化消息对话框
  • ProgressRing — 进度环
  • LoadingOverlay — 加载遮罩层
  • UploadControl — 文件上传(拖拽 + 文件选择)
  • UploadWindow / UploadMsg — 上传窗口和消息

值转换器

转换器 用途
BooleanToVisibilityReConverter 布尔 → 可见性(反向)
InverseBooleanConverter 布尔反向
MemorySizeConverter 字节 → 可读大小
EnumToVisibilityConverter 枚举 → 可见性
IntToVisibilityConverter 整数 → 可见性
WidthToBooleanConverter 宽度 → 布尔

窗口样式

  • BaseWindow — 基础窗口样式
  • WindowHelper — 窗口帮助类
  • WindowBlur — 窗口模糊效果(DWM)

依赖关系

  • 引用: HandyControl 3.5.1
  • 被引用: ColorVision.UI, ColorVision.Scheduler, ColorVision.ImageEditor

构建

dotnet build UI/ColorVision.Themes/ColorVision.Themes.csproj
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 (4)

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

Package Downloads
ColorVision.UI

Package Description

ColorVision.ImageEditor

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.1 83 7/23/2026
1.5.6.1 133 7/8/2026
1.5.5.3 136 6/2/2026
1.5.5.2 145 5/31/2026
1.5.5.1 163 4/13/2026
1.5.4.1 136 3/31/2026
1.5.1.2 126 3/31/2026
1.5.1.1 170 2/16/2026
1.4.1.1 151 2/3/2026
1.3.10.1 161 1/14/2026
1.3.8.3 359 10/17/2025
1.3.8.2 241 9/30/2025
1.3.8.1 280 9/25/2025
1.3.7.1 283 9/21/2025
1.3.6.1 225 9/5/2025
1.3.5.1 318 8/24/2025
1.3.4.1 234 8/18/2025
1.3.2.2 282 6/3/2025
1.3.2.1 225 6/2/2025
1.3.1.1 230 5/29/2025
Loading failed