ShydControls.Wpf 2.0.0

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" />
                    
Directory.Packages.props
<PackageReference Include="ShydControls.Wpf" />
                    
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 ShydControls.Wpf --version 2.0.0
                    
#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
                    
Install as a Cake Addin
#tool nuget:?package=ShydControls.Wpf&version=2.0.0
                    
Install as a Cake Tool

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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.0 218 10/28/2025
1.1.1 324 10/14/2023
1.1.0 190 10/11/2023
1.0.9 183 10/10/2023
1.0.8 193 10/9/2023
1.0.7 218 10/9/2023
1.0.6 209 10/8/2023
1.0.5 215 10/2/2023
1.0.4 205 10/1/2023
1.0.3 209 10/1/2023
1.0.2 204 10/1/2023
1.0.1 195 10/1/2023
1.0.0 199 10/1/2023