ColorVision.Common
1.3.8.5
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package ColorVision.Common --version 1.3.8.5
NuGet\Install-Package ColorVision.Common -Version 1.3.8.5
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.
For projects that support PackageReference, copy this XML node into the project file to reference the package.
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.Common --version 1.3.8.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ColorVision.Common, 1.3.8.5"
#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.Common@1.3.8.5
#: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.Common&version=1.3.8.5
#tool nuget:?package=ColorVision.Common&version=1.3.8.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ColorVision.Common
🎯 功能定位
通用基础框架库,提供整个ColorVision系统的基础接口定义、MVVM支持和通用工具类。
作用范围
作为最底层的通用库,为所有上层模块提供统一的接口规范和基础功能实现。
主要功能点
MVVM基础设施
- ViewModelBase - 视图模型基类,实现INotifyPropertyChanged
- ActionCommand - 支持Action委托的命令实现
- RelayCommand - 带参数的命令实现
- RelayCommand
- 泛型命令支持
核心接口定义
- IConfig - 配置对象统一接口,支持配置持久化
- IConfigSetting - 配置设置界面接口
- IMenuItem - 菜单项扩展接口
- IWizardStep - 向导步骤接口
- IFileProcessor - 文件处理器接口
- ISearch - 搜索功能接口
- IInitializer - 初始化器接口
通用工具类
- 观察者模式 - 事件订阅和通知机制
- 扩展方法 - 常用类型的扩展方法集合
- 辅助类 - 各种通用辅助功能
与主程序的依赖关系
被引用方式:
- ColorVision.UI - 使用基础接口和MVVM支持
- ColorVision.Engine - 使用配置接口和通用工具
- 所有插件和项目 - 依赖通用接口定义
引用的外部依赖:
- 仅依赖.NET基础库,无第三方依赖
使用方式
引用方式
MVVM示例
public class MyViewModel : ViewModelBase
{
private string _name;
public string Name
{
get => _name;
set => SetProperty(ref _name, value);
}
public RelayCommand SaveCommand { get; }
public MyViewModel()
{
SaveCommand = new RelayCommand(Save);
}
private void Save()
{
// 保存逻辑
}
}
配置接口使用
public class MyConfig : IConfig
{
public string ConfigName => "MyConfig";
public void Save()
{
// 保存配置
}
public void Load()
{
// 加载配置
}
}
开发调试
dotnet build UI/ColorVision.Common/ColorVision.Common.csproj
相关文档链接
维护者
ColorVision 核心团队
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. 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.
-
net6.0-windows7.0
- No dependencies.
-
net8.0-windows7.0
- No dependencies.
NuGet packages (5)
Showing the top 5 NuGet packages that depend on ColorVision.Common:
| Package | Downloads |
|---|---|
|
ColorVision.UI
Package Description |
|
|
ColorVision.ImageEditor
Package Description |
|
|
ColorVision.Scheduler
Package Description |
|
|
ColorVision.ImageTools
ColorVision multi-image viewing and image fusion tools for WPF applications. |
|
|
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.6.0 | 0 | 10/7/2026 |
| 1.5.8 | 156 | 8/18/2026 |
| 1.5.7 | 171 | 7/28/2026 |
| 1.5.6.1 | 166 | 7/8/2026 |
| 1.5.5.2 | 200 | 5/31/2026 |
| 1.5.5.1 | 171 | 4/13/2026 |
| 1.5.4.1 | 139 | 3/31/2026 |
| 1.5.1.2 | 124 | 3/22/2026 |
| 1.5.1.1 | 169 | 2/16/2026 |
| 1.4.1.2 | 149 | 2/13/2026 |
| 1.4.1.1 | 151 | 2/3/2026 |
| 1.3.10.2 | 164 | 1/29/2026 |
| 1.3.10.1 | 152 | 1/14/2026 |
| 1.3.9.3 | 526 | 12/9/2025 |
| 1.3.9.2 | 268 | 11/22/2025 |
| 1.3.9.1 | 366 | 11/16/2025 |
| 1.3.8.5 | 291 | 10/27/2025 |
| 1.3.8.4 | 190 | 10/11/2025 |
| 1.3.8.3 | 252 | 9/30/2025 |
| 1.3.8.2 | 247 | 9/29/2025 |
Loading failed