VOOZH about

URL: https://www.nuget.org/packages/GoesSoftware.SuperSDK.Canvas/

⇱ NuGet Gallery | GoesSoftware.SuperSDK.Canvas 7.23.7




GoesSoftware.SuperSDK.Canvas 7.23.7

dotnet add package GoesSoftware.SuperSDK.Canvas --version 7.23.7
 
 
NuGet\Install-Package GoesSoftware.SuperSDK.Canvas -Version 7.23.7
 
 
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="GoesSoftware.SuperSDK.Canvas" Version="7.23.7" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GoesSoftware.SuperSDK.Canvas" Version="7.23.7" />
 
Directory.Packages.props
<PackageReference Include="GoesSoftware.SuperSDK.Canvas" />
 
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 GoesSoftware.SuperSDK.Canvas --version 7.23.7
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: GoesSoftware.SuperSDK.Canvas, 7.23.7"
 
 
#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 GoesSoftware.SuperSDK.Canvas@7.23.7
 
 
#: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=GoesSoftware.SuperSDK.Canvas&version=7.23.7
 
Install as a Cake Addin
#tool nuget:?package=GoesSoftware.SuperSDK.Canvas&version=7.23.7
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SuperSDK.Canvas

Avalonia 画布组件库,提供可视化绘图、设备管理、连线等功能。

安装

dotnet add package SuperSDK.Canvas

使用示例

1. 在 XAML 中使用画布

<UserControl xmlns="https://github.com/avaloniaui"
 xmlns:canvas="using:SuperSDK.Canvas.Views">
 
 <canvas:GzCanvasView DataContext="{Binding Canvas}" />
 
</UserControl>

2. 在 ViewModel 中创建画布

using SuperSDK.Canvas.ViewModels;
using SuperSDK.Canvas.Services;

public class MainViewModel : ViewModelBase
{
 public GzCanvasViewModel Canvas { get; }
 
 public MainViewModel()
 {
 Canvas = new GzCanvasViewModel();
 
 // 加载画布数据(如果存在)
 string filePath = "canvas_data.gvs";
 if (File.Exists(filePath))
 {
 Canvas = CanvasFileService.LoadCanvas(filePath);
 }
 }
 
 public void SaveCanvas()
 {
 CanvasFileService.SaveCanvas(Canvas, "canvas_data.gvs");
 }
}

3. 常用操作

// 添加设备
Canvas.AddDevice(deviceModel);

// 删除设备
Canvas.RemoveDevice(deviceId);

// 清空画布
Canvas.ClearCanvas();

// 保存/加载数据(使用 CanvasFileService)
using SuperSDK.Canvas.Services;

CanvasFileService.SaveCanvas(Canvas, filePath);
var loadedCanvas = CanvasFileService.LoadCanvas(filePath);
Product Versions Compatible and additional computed target framework versions.
.NET net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows 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
7.23.7 98 5/22/2026
7.23.6 96 5/22/2026
7.23.5 104 5/13/2026
7.23.4 103 5/13/2026
7.23.3 96 5/13/2026
7.23.2 97 5/13/2026
7.23.1 91 5/12/2026
7.23.0 95 5/12/2026
7.21.0 99 5/12/2026
7.20.0 103 5/12/2026
7.19.1 106 5/11/2026
7.19.0 97 5/11/2026
7.18.0 114 4/30/2026
7.17.0 118 4/29/2026
7.16.2 112 4/14/2026
7.16.0 107 4/13/2026
7.15.10 105 4/13/2026
7.15.6 99 4/13/2026
7.15.5 101 4/12/2026
7.15.1 101 4/12/2026
Loading failed

docs(gotest-agent): add Profile file naming rule to engineer prompt