AutomationCore.Wpf 1.5.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package AutomationCore.Wpf --version 1.5.1
                    
NuGet\Install-Package AutomationCore.Wpf -Version 1.5.1
                    
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="AutomationCore.Wpf" Version="1.5.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AutomationCore.Wpf" Version="1.5.1" />
                    
Directory.Packages.props
<PackageReference Include="AutomationCore.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 AutomationCore.Wpf --version 1.5.1
                    
#r "nuget: AutomationCore.Wpf, 1.5.1"
                    
#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 AutomationCore.Wpf@1.5.1
                    
#: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=AutomationCore.Wpf&version=1.5.1
                    
Install as a Cake Addin
#tool nuget:?package=AutomationCore.Wpf&version=1.5.1
                    
Install as a Cake Tool

用法

Step 1: 添加 AutomationCore.WPF 引用,或在 nuget 上搜索 AutomationCore.WPF; Install-Package AutomationCore.WPF

Step 2: 在 App.xaml 中添加如下代码:

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
              <ResourceDictionary Source="pack://application:,,,/AutomationCore.Wpf;component/Themes/Generic.xaml" />
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Step 3: 添加命名空间: xmlns:hc="https://handyorg.github.io/handycontrol"

控件使用

详细用法见HandyControl

PropertyGrid

<hc:PropertyGrid SelectedObject="{Binding SelectedObject}" />

原HandyControl中的PropertyGrid控件已移除 基于PropertyTools创建,修改及新增了部分样式

Nest

[Nest]
public NestClass Property { get; set; } = new();

标记为[Nest]的属性带有扩展按钮,点击可弹出窗口编辑Property的子属性

<hc:PopupBox ToggleContent="{Binding Header}">
    
</hc:PopupBox>

弹出窗口编辑器,点击可编辑内容

BrushPickerBox

<hc:BrushPickerBox SelectedBrush="{Binding SelectedBrush}" />

画刷颜色选择器,点击可弹出Popup选择颜色,基于[BrushPickerBox]创建

ZoomImageBox

<hc:ZoomImageBox Source="图片路径"/>

图片显示控件,可鼠标拖动及缩放

ZoomImageBox

<hc:ZoomImageBox Source="图片路径"/>

图片显示控件,可鼠标拖动及缩放

DragDrop

hc:DragDrop.IsDragSource="True"
hc:DragDrop.IsDropTarget="True"

[ListBox]、[ListView]、[TreeView]、[DataGrid]等集合控件的附加属性,可实现鼠标拖放排序插入功能

ValueConverters

命名空间 xmlns:converters="http://schemas.superdev.ch/valueconverters/2016/xaml" 带有大多数的值转换器,也可以通过转换器组合实现复杂的数值转换

<converts:ValueConverterGroup x:Key="NullToVisible">
    <converts:StringIsNotNullOrEmptyConverter /> 
    <converts:BoolToVisibilityConverter />
</converts:ValueConverterGroup>

该转换器为将string为null时的数据转换为Visibility.Collapsed

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
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
1.7.3 90 1/8/2026
1.7.2 83 1/1/2026
1.7.1 82 1/1/2026
1.7.0 172 12/25/2025
1.6.9 176 12/25/2025
1.6.8 156 12/20/2025
1.6.7 267 12/16/2025
1.6.6 421 12/11/2025
1.6.3 433 12/10/2025
1.6.2 188 12/5/2025
1.6.1 200 12/5/2025
1.6.0 193 12/4/2025
1.5.8 670 12/3/2025
1.5.7 677 12/2/2025
1.5.4 409 11/18/2025
1.5.3 309 11/17/2025
1.5.2 168 11/15/2025
1.5.1 233 11/14/2025
1.4.0 188 11/7/2025
1.3.0 193 11/4/2025
1.2.0 202 11/4/2025
1.1.0 199 11/4/2025
1.0.5 198 10/31/2025
1.0.2 205 10/30/2025
1.0.1 202 10/29/2025