ShydControls.Wpf
2.0.0
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
dotnet add package ShydControls.Wpf --version 2.0.0
NuGet\Install-Package ShydControls.Wpf -Version 2.0.0
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="ShydControls.Wpf" Version="2.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ShydControls.Wpf" Version="2.0.0" />
<PackageReference Include="ShydControls.Wpf" />
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 ShydControls.Wpf --version 2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ShydControls.Wpf, 2.0.0"
#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 ShydControls.Wpf@2.0.0
#: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=ShydControls.Wpf&version=2.0.0
#tool nuget:?package=ShydControls.Wpf&version=2.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ShydControls.Wpf
WPF控件库,包含丰富的UI组件,为WPF应用程序提供现代化的界面元素。
功能特点
- Charts: 图表控件,包括五角图、温度风扇曲线等
- Aperture: 光圈相关控件,如环形进度条、发光环等
- Dashboards: 仪表盘控件,如温度表、风扇速度表、PWM表等
- IndustrialComponents: 工业组件,如阀门、管道、冷却泵等
- Others: 其他控件,如骨架屏等
安装方法
通过NuGet安装:
Install-Package ShydControls.Wpf
或者使用.NET CLI:
dotnet add package ShydControls.Wpf
使用方法
XAML中引用
只需添加命名空间引用,即可使用所有控件:
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:shyd="http://schemas.shydcontrols.com/wpf"
xmlns:shydIndustrial="http://schemas.shydcontrols.com/wpf/IndustrialComponents"
xmlns:shydOthers="http://schemas.shydcontrols.com/wpf/Others">
<shyd:TemperatureFanCurveControl />
<shyd:CircularProgressBar />
<shyd:FanSpeedGauge />
<shydIndustrial:Valve />
<shydOthers:SkeletonScreen />
</Window>
C#代码中使用
在C#代码中,您可以根据需要导入相应的命名空间:
using ShydControls.Wpf;
using ShydControls.Wpf.Charts;
using ShydControls.Wpf.Aperture;
using ShydControls.Wpf.Dashboards;
using ShydControls.Wpf.IndustrialComponents;
using ShydControls.Wpf.Others;
支持的框架
- .NET 8.0 Windows
- .NET 6.0 Windows
- .NET Framework 4.8.1
- .NET Framework 4.8
- .NET Framework 4.7.2
示例
请参考Demo项目以了解如何使用各个控件。
许可证
MIT
| 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. |
| .NET Framework | net472 is compatible. net48 is compatible. net481 is compatible. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7.2
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.135)
-
.NETFramework 4.8
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.135)
-
.NETFramework 4.8.1
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.135)
-
net6.0-windows7.0
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.135)
-
net8.0-windows7.0
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.135)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.