CgdataBase.WPF.Common
1.9.3
dotnet add package CgdataBase.WPF.Common --version 1.9.3
NuGet\Install-Package CgdataBase.WPF.Common -Version 1.9.3
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="CgdataBase.WPF.Common" Version="1.9.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CgdataBase.WPF.Common" Version="1.9.3" />
<PackageReference Include="CgdataBase.WPF.Common" />
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 CgdataBase.WPF.Common --version 1.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CgdataBase.WPF.Common, 1.9.3"
#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 CgdataBase.WPF.Common@1.9.3
#: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=CgdataBase.WPF.Common&version=1.9.3
#tool nuget:?package=CgdataBase.WPF.Common&version=1.9.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CgdataBase.WPF.Common
介绍
针对WPF开发的基础库,包含一些常用的WPF控件和辅助类。 引用了CgdataBase.WPF库,在此基础上引用了第三方库,并增加一些常用类。
包含的类:
- AppSettingsBase:配置文件的基础类。
- AvalonEditBehaviour:对AvalonEdit进行了简单的封装,主要是为了支持MVVM绑定文本。
- BindingSelectItemsAttach:对ItemsControl的SelectedItems进行了简单的封装,主要是为了支持MVVM绑定选中的项。
- DataGridSelectedItemsBehavior:对DataGrid的SelectedItems进行了简单的封装,主要是为了支持MVVM绑定选中的项。
- DockController:对AvalonDock进行了简单的封装。
- ElementHelper:对WPF元素的简单封装,主要是获取父元素、子元素等。
- FontController:对字体的简单封装,获取系统字体列表。
- GridController: 对Grid的行列宽高进行保存和加载。
- JsonController:对Json的简单封装。
- ListBoxSelectedItemsBehavior:对ListBox的SelectedItems进行了简单的封装,主要是为了支持MVVM绑定选中的项。
- PasswordBoxHelper:对PasswordBox进行了简单的封装,主要是为了支持MVVM绑定密码。
- PipeController:对命名管道的简单封装,主要用于应用单例启动时唤醒老的进程。
- TextCodeGuessHelper: 对文本编码的简单封装,主要是用于猜测文本编码。
- ValidationController:对数据验证的简单封装。
引用第三方库
- AvalonEdit:WPF的代码编辑器。
- DeepCloner:对象深拷贝库。
- Extended.Wpf.Toolkit:WPF的扩展控件库,主要是使用里面的AvalonDock(WPF的停靠控件)。
- gong-wpf-dragdrop:WPF的拖拽库。
- MahApps.Metro.IconPacks:WPF的图标库。
- Mapster: 对象映射库。
- Microsoft.Xaml.Behaviors.Wpf: WPF的行为库,主要是为了完成DataGridSelectedItemsBehavior和ListBoxSelectedItemsBehavior的绑定行为。
- NetMQ:消息队列,主要用于版本检测的功能。
- Newtonsoft.Json:Json序列化和反序列化。
- NLog:日志库。
- Notification.Wpf:WPF的通知库。
- Prism.Unity:WPF的MVVM框架。
- ReactiveUI:响应式编程库。
| 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
- AvalonEdit (>= 6.3.1.120)
- CgdataBase.WPF (>= 1.9.3)
- Extended.Wpf.Toolkit (>= 5.0.0)
- gong-wpf-dragdrop (>= 4.0.0)
- MahApps.Metro.IconPacks (>= 6.1.0)
- Mapster (>= 7.4.0)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.135)
- NetMQ (>= 4.0.2.2)
- Newtonsoft.Json (>= 13.0.3)
- NLog (>= 6.0.6)
- Notification.Wpf (>= 8.0.0)
- NPOI (>= 2.7.5)
- Prism.Unity (>= 9.0.537)
- ReactiveUI (>= 22.2.1)
-
net8.0-windows7.0
- AvalonEdit (>= 6.3.1.120)
- CgdataBase.WPF (>= 1.9.3)
- Extended.Wpf.Toolkit (>= 5.0.0)
- gong-wpf-dragdrop (>= 4.0.0)
- MahApps.Metro.IconPacks (>= 6.1.0)
- Mapster (>= 7.4.0)
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.135)
- NetMQ (>= 4.0.2.2)
- Newtonsoft.Json (>= 13.0.3)
- NLog (>= 6.0.6)
- Notification.Wpf (>= 8.0.0)
- NPOI (>= 2.7.5)
- Prism.Unity (>= 9.0.537)
- ReactiveUI (>= 22.2.1)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on CgdataBase.WPF.Common:
| Package | Downloads |
|---|---|
|
CgdataBase.WPF.Plus
Package Description |
|
|
CgdataBase.WPF.Metro
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.9.3 | 39 | 1/6/2026 |
| 1.9.2.3 | 169 | 12/25/2025 |
| 1.9.2.2 | 114 | 12/13/2025 |
| 1.9.2 | 171 | 12/5/2025 |
| 1.9.1.3 | 180 | 11/25/2025 |
| 1.9.1 | 253 | 11/22/2025 |
| 1.9.0 | 316 | 11/21/2025 |
| 1.8.3 | 411 | 11/20/2025 |
| 1.8.2.6 | 394 | 11/19/2025 |
| 1.8.2.1 | 402 | 11/18/2025 |
| 1.8.1 | 401 | 11/18/2025 |
| 1.8.0.5 | 304 | 11/17/2025 |
| 1.8.0.4 | 280 | 11/12/2025 |
| 1.8.0 | 189 | 11/6/2025 |