ColorVision.Common
1.5.8
dotnet add package ColorVision.Common --version 1.5.8
NuGet\Install-Package ColorVision.Common -Version 1.5.8
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.5.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ColorVision.Common, 1.5.8"
#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.5.8
#: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.5.8
#tool nuget:?package=ColorVision.Common&version=1.5.8
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ColorVision.Common
版本: 1.5.5.1 | 目标框架: .NET 8.0 / .NET 10.0 Windows
功能定位
ColorVision 系统的通用基础框架库,提供 MVVM 架构、接口定义、命令系统、工具类和基础服务。作为最底层库,被所有上层模块依赖。
主要功能
MVVM 架构
- ViewModelBase — INotifyPropertyChanged 基类,支持
SetProperty/OnPropertyChanged - RelayCommand / RelayCommand
— 带参数的命令实现 - ActionCommand — 支持 Action 命令 + Undo/Redo
接口定义
| 接口 | 用途 |
|---|---|
IMenuItem / IMenuItemProvider |
菜单系统 |
IPlugin / IPluginBase |
插件系统 |
IConfig / IConfigSettingProvider |
配置管理 |
IView / IViewManager |
视图管理 |
IStatusBarProvider / IStatusBarProviderUpdatable |
状态栏 |
ISearch / ISearchProvider |
搜索功能 |
IInitializer / InitializerBase |
初始化系统 |
IWizardStep |
向导步骤 |
IFileProcessor |
文件处理 |
IThumbnailProvider |
缩略图 |
IDockPanelProvider |
停靠面板 |
IFeatureLauncher |
功能启动器 |
IFeedbackLogCollector |
反馈日志 |
IThirdPartyAppProvider |
第三方应用 |
权限管理
- AccessControl — 访问控制
- RequiresPermissionAttribute —
[RequiresPermission(PermissionMode.Administrator)] - PermissionMode — None / User / Administrator
工具类
| 工具 | 用途 |
|---|---|
FileUtils |
文件操作(EnsureDirectory、SafeDelete、GetFileSizeText) |
ImageUtils |
图像处理 |
Cryptography |
MD5/SHA256/AES 加密 |
RegexUtils / RegUtils |
正则/注册表 |
WindowHelpers / WindowUtils |
窗口操作 |
CollectionUtils / DictionaryUtils / StringUtils / EnumUtils |
集合/字典/字符串/枚举 |
DebounceTimer / TaskConflator |
异步工具(防抖、任务合并) |
PlatformHelper |
平台检测 |
CsvWriter |
CSV 写入 |
MemorySize |
内存大小计算 |
原生方法
- User32 / Dwmapi / Shlwapi — Win32 API 封装
- Clipboard / Keyboard — 剪贴板/键盘操作
- ShellFileOperations — Shell 文件操作
- Win32DeviceMgmt — 设备管理
配置服务
- ConfigService — 配置实例管理(
GetRequiredService)() - WindowConfig — 窗口配置基类
- ConfigSettingType — Property / Class / TabItem
其他
- MenuItemBase — 菜单项基类(
GlobalMenuBase继承自它) - ViewGridManager — 视图网格管理
- View — 视图基类
- StatusBarMeta / StatusBarAlignment / StatusBarType — 状态栏元数据
- SearchBase / SearchMeta / SearchType — 搜索基类
- ThirdPartyAppManager — 第三方应用管理
- DebounceTimer — 防抖定时器
- TaskConflator — 任务合并器
依赖关系
- 无外部依赖,仅依赖 .NET 基础库
- 被引用: ColorVision.UI、ColorVision.Themes、ColorVision.ImageEditor、ColorVision.Scheduler 等所有 UI 模块
构建
dotnet build UI/ColorVision.Common/ColorVision.Common.csproj
| Product | Versions 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.
-
net10.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.5.8 | 156 | 8/18/2026 |
| 1.5.7 | 171 | 7/28/2026 |
| 1.5.6.1 | 165 | 7/8/2026 |
| 1.5.5.2 | 199 | 5/31/2026 |
| 1.5.5.1 | 171 | 4/13/2026 |
| 1.5.4.1 | 139 | 3/31/2026 |
| 1.5.1.2 | 123 | 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 | 163 | 1/29/2026 |
| 1.3.10.1 | 152 | 1/14/2026 |
| 1.3.9.3 | 526 | 12/9/2025 |
| 1.3.9.2 | 267 | 11/22/2025 |
| 1.3.9.1 | 366 | 11/16/2025 |
| 1.3.8.5 | 289 | 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 |
| 1.3.8.1 | 257 | 9/25/2025 |
Loading failed