YE.Control
1.0.2024.531-beta
.NET 6.0
This package targets .NET 6.0. The package is compatible with this framework or higher.
.NET Framework 4.6.2
This package targets .NET Framework 4.6.2. The package is compatible with this framework or higher.
This is a prerelease version of YE.Control.
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 YE.Control --version 1.0.2024.531-beta
NuGet\Install-Package YE.Control -Version 1.0.2024.531-beta
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="YE.Control" Version="1.0.2024.531-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add YE.Control --version 1.0.2024.531-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: YE.Control, 1.0.2024.531-beta"
#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.
// Install YE.Control as a Cake Addin #addin nuget:?package=YE.Control&version=1.0.2024.531-beta&prerelease // Install YE.Control as a Cake Tool #tool nuget:?package=YE.Control&version=1.0.2024.531-beta&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
YE.Control
YE.Control是一个基于WPF框架的控件库。
UserControl
IP IP地址控件,可绑定IP地址、端口号。IP端口号通过'HasPort'设置启用与否。
依赖属性
/// IP地址,Default Value = "127.0.0.1"
string IPAddress;
/// 是否有端口号,Default Value = false
bool HasPort;
/// IP端口号,Default Value = 8501
int IPPort;
样例
xmlns:yecontrol="clr-namespace:YE.Control.UserControls;assembly=YE.Control"
<yecontrol:IP Width="240"
Height="30"
Margin="5"
HorizontalAlignment="Left"
HasPort="{Binding ElementName=IPPort, Path=IsChecked}"
IPAddress="{Binding ServerIP}"
IPPort="{Binding ServerPort}"
BorderBrush="LightGreen"
BorderThickness="1" />
ImageEx 图像显示控件,基于System.Windows.Controls.Image控件增加了图像缩放、拖动、鼠标点击事件[右键单击-图像大小还原]
依赖属性
/// Image控件边框颜色 Default Value = Brushes.LightGray
System.Windows.Media.Brush MarginColor;
/// 图像内容
ImageSource ImageExSource;
样例
xmlns:yecontrol="clr-namespace:YE.Control.UserControls;assembly=YE.Control"
<yecontrol:ImageEx Height="300"
BorderBrush="LightGreen"
BorderThickness="3"
ImageExSource="{Binding ImagePathUri}" />
StatueLED 状态灯控件,用于显示网络状态或其它状态
依赖属性
public enum StatusType
{
/// <summary>离线状态</summary>
OffLine,
/// <summary>在线正常状态</summary>
OnLine_OK,
/// <summary>在线错误状态</summary>
OnLine_Error,
}
/// 状态灯信息,Default Value = StatusType.OffLine
StatusType LEDType;
/// 状态灯信息,Default Value = Empty
string StatusText;
/// 状态灯离线颜色,Default Value = Brushes.Gray
System.Windows.Media.Brush OffLineColor;
/// 状态灯在线正常颜色,Default Value = Brushes.Green[默认1s闪烁一次]
System.Windows.Media.Brush OnLineOKColor;
/// 状态灯在线错误颜色,Default Value = Brushes.Red
System.Windows.Media.Brush OnLineErrorColor;
样例
xmlns:yecontrol="clr-namespace:YE.Control.UserControls;assembly=YE.Control"
<yecontrol:StatusLED Margin="5"
HorizontalAlignment="Left"
StatusText="服务器"
LEDType="{Binding ServerLEDType}"
OffLineColor="Orange"
OnLineOKColor="LightGreen"
OnLineErrorColor="OrangeRed"/>
<yecontrol:StatusLED Margin="5"
HorizontalAlignment="Left"
StatusText="客户端"
LEDType="{Binding ClientLEDType}" />
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0-windows was computed. net8.0-windows7.0 is compatible. |
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 is compatible. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- ValueConverters (>= 2.2.10)
-
.NETFramework 4.7.2
- ValueConverters (>= 2.2.10)
-
net6.0-windows7.0
- ValueConverters (>= 2.2.10)
-
net7.0-windows7.0
- ValueConverters (>= 2.2.10)
-
net8.0-windows7.0
- ValueConverters (>= 2.2.10)
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 |
---|---|---|
1.0.2024.801 | 85 | 8/1/2024 |
1.0.2024.601 | 105 | 6/1/2024 |
1.0.2024.531-beta | 103 | 5/31/2024 |
0.1.2024.529 | 112 | 5/29/2024 |
0.1.2024.528 | 91 | 5/28/2024 |
0.1.2024.518 | 109 | 5/18/2024 |
0.1.2024.515 | 108 | 5/15/2024 |
0.1.2024.514 | 102 | 5/14/2024 |
完善StatusLED控件