VeloxDev.WinUI.Templates 5.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet new install VeloxDev.WinUI.Templates@5.0.2
                    
This package contains a .NET Template Package you can call from the shell/command line.

<div align="center">

โšก VeloxDev

Build modern, AI-controllable workflow editors on any .NET GUI โ€” WPF, Avalonia, WinUI, MAUI, or WinForms.

NuGet NuGet License: MIT GitHub


๐Ÿ“– Full documentation & guides โ†’ Wiki


</div>

โœจ What is VeloxDev?

VeloxDev gives .NET developers a complete foundation for building interactive workflow editors โ€” the kind where users drag nodes, wire slots together, and watch data flow through a graph at runtime.

The workflow system is the core. Everything else exists to make workflows more extensible, more polished, and AI-controllable:

Layer What it provides Adapter needed?
โ›“๏ธ Workflow Tree / Node / Slot / Link templates with full undo-redo, spatial indexing, and a serialization model โŒ
๐Ÿค– Workflow Agent 30+ Function Calling tools โ€” an AI can create nodes, wire slots, patch properties, and manage routing at runtime via natural language โœ” Extension
๐Ÿชถ MVVM Source Generator for observable properties and async, cancellable commands โ€” the glue that keeps node ViewModels lightweight โŒ
๐ŸŽž๏ธ Transition Cross-platform interpolation animation with easing & Fluent API โ€” smooth visual feedback for workflow state changes โœ”
๐ŸŽจ Theme Runtime theme switching with animated transitions โ€” instant visual identity for your editor โœ”
๐ŸŒ€ AOP Compile-time aspect proxies โ€” intercept node execution, add logging or validation without modifying business logic โŒ
โš™๏ธ MonoBehaviour Frame-driven lifecycle loop โ€” tick-based node simulation or real-time graph execution โŒ
๐Ÿ“ฆ AOT Reflection Source-generated reflection preservation โ€” keeps workflow introspection working after trimming and AOT compilation โŒ

๐Ÿ“ฆ Installation

Pick the adapter for your GUI framework and you get everything โ€” workflow, agent, animations, and theming wired up for that platform.

Platform Package NuGet
WPF VeloxDev.WPF NuGet
Avalonia VeloxDev.Avalonia NuGet
WinUI VeloxDev.WinUI NuGet
MAUI VeloxDev.MAUI NuGet
WinForms VeloxDev.WinForms NuGet

Build a WPF workflow view suite with the CLI

Run these commands from an existing WPF project. Replace MyApp with the project's root namespace:

dotnet new install VeloxDev.WPF.Templates
dotnet add package VeloxDev.WPF

dotnet new wpf-v-slot -n SlotView -ns MyApp.Views -o Views
dotnet new wpf-v-node -n NodeView -ns MyApp.Views -o Views
dotnet new wpf-v-link -n LinkView -ns MyApp.Views -o Views
dotnet new wpf-v-selector -n TemplateSelector -ns MyApp.Views -o Views
dotnet new wpf-v-decorator -n GridDecorator -ns MyApp.Views -o Views
dotnet new wpf-v-tree -n TreeView -ns MyApp.Views -o Views

dotnet build

The template package contains the Node, Slot, Link, Tree, template selector, and grid decorator views. Each view template generates its XAML and code-behind files with the required VeloxDev workflow behaviors already connected.

The Avalonia, WPF, WinUI, and MAUI template suites expose the same style options. Common short aliases include:

Template Style aliases
Node -bg background, -fg foreground, -bb border brush, -bt border thickness, -cr corner radius
Slot -bg background, -sc standby color, -bc border color
Link -lc line color, -lt line thickness
Tree -bg background, -bb border brush, -bt border thickness, -cr corner radius
Grid decorator -bg background, -mic minor color, -mac major color, -ac axis color, -gs spacing, -mle major interval

All templates use -ns for the generated namespace.

Core-only packages (bring your own adapter)

Package NuGet Description
VeloxDev.Core NuGet Workflow abstractions, MVVM generators, and runtime models โ€” zero third-party dependencies
VeloxDev.Core.Extension NuGet MAF-based Workflow Agent tools and additional runtime extensions

๐Ÿš€ Quick Look

Define a node

// Declare a node โ€” the Source Generator handles INotifyPropertyChanged,
// slot lifecycle, and command wiring automatically.
[WorkflowBuilder.Node<MyNodeHelper>]
public partial class MyNodeViewModel
{
    public MyNodeViewModel() => InitializeWorkflow();

    [AgentContext(AgentLanguages.English, "Input slot (receiver)")]
    [VeloxProperty] public partial MySlotViewModel InputSlot { get; set; }

    [AgentContext(AgentLanguages.English, "Output slot (sender)")]
    [VeloxProperty] public partial MySlotViewModel OutputSlot { get; set; }

    [AgentContext(AgentLanguages.English, "Display title shown in the node header")]
    [VeloxProperty] private string title = "My Node";
}

Let an AI control the workflow at runtime

// One fluent call wires up discovery, tools, and the agent session.
var scope = tree.AsAgentScope()
    .WithAutoDiscovery(assemblyName: "MyApp")
    .WithInteractionSafety(3)          // confirm before destructive ops; present choices via tool
    .WithSelectionHandler(ShowDialog)
    .WithConfirmationHandler(ShowDialog);

var agent = chatClient.AsAIAgent(
    instructions: scope.ProvideProgressiveContextPrompt(),
    tools: scope.ProvideTools());

The agent can then create nodes, wire slots, change routing credentials, and patch properties โ€” all through natural-language instructions, with full undo/redo support.


๐Ÿ—‚๏ธ Repository Layout

VeloxDev/
โ”œโ”€โ”€ Src/
โ”‚   โ”œโ”€โ”€ Core/
โ”‚   โ”‚   โ”œโ”€โ”€ VeloxDev.Core                   # Workflow abstractions, MVVM generators & runtime models
โ”‚   โ”‚   โ”œโ”€โ”€ VeloxDev.Core.Extension         # MAF-based Workflow Agent tools & runtime extensions
โ”‚   โ”‚   โ”œโ”€โ”€ VeloxDev.Core.Test              # Unit tests for VeloxDev.Core
โ”‚   โ”‚   โ””โ”€โ”€ VeloxDev.Core.Extension.Test    # Unit tests for VeloxDev.Core.Extension
โ”‚   โ”œโ”€โ”€ Adapters/
โ”‚   โ”‚   โ”œโ”€โ”€ VeloxDev.WPF                    # WPF platform adapter
โ”‚   โ”‚   โ”œโ”€โ”€ VeloxDev.Avalonia               # Avalonia platform adapter
โ”‚   โ”‚   โ”œโ”€โ”€ VeloxDev.WinUI                  # WinUI 3 platform adapter
โ”‚   โ”‚   โ”œโ”€โ”€ VeloxDev.MAUI                   # .NET MAUI platform adapter
โ”‚   โ”‚   โ””โ”€โ”€ VeloxDev.WinForms               # WinForms platform adapter
โ”‚   โ”œโ”€โ”€ Generators/
โ”‚   โ”‚   โ””โ”€โ”€ VeloxDev.Core.Generator         # Roslyn Source Generators (netstandard2.0)
โ”‚   โ””โ”€โ”€ Templates/                          # dotnet new item templates for GUI adapters
โ”œโ”€โ”€ Examples/
โ”‚   โ”œโ”€โ”€ Workflow/      WPF ยท Avalonia ยท WinUI ยท WinForms ยท MAUI ยท Common(Lib)
โ”‚   โ”œโ”€โ”€ MVVM/          WPF ยท Avalonia
โ”‚   โ”œโ”€โ”€ Transition/    WPF ยท Avalonia ยท WinUI ยท WinForms ยท MAUI
โ”‚   โ”œโ”€โ”€ Theme/         WPF ยท Avalonia
โ”‚   โ”œโ”€โ”€ AOP/           WPF ยท Avalonia
โ”‚   โ”œโ”€โ”€ AOTReflection/
โ”‚   โ””โ”€โ”€ MonoBehaviour/ WPF
โ””โ”€โ”€ Docs/
    โ”œโ”€โ”€ VeloxDev.Docs           # Documentation site (Blazor WebAssembly)
    โ”œโ”€โ”€ VeloxDev.Docs.Browser   # Browser-hosted docs entry point
    โ””โ”€โ”€ VeloxDev.Docs.Desktop   # Desktop-hosted docs entry point

๐Ÿ“„ License

Released under the MIT License. ยฉ 2025 Axvser

  • .NETStandard 2.0

    • No dependencies.

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
5.0.3 45 6/13/2026
5.0.2 49 6/13/2026
5.0.0 51 6/11/2026