Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Optimal ViewModel and Wizard creation patterns for Avalonia using Zafiro and ReactiveUI.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-03 | ✗→✓ | ▲ Improved | -29% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -16% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -13% | 0% |
| case-01 | ✗→✓ | ▲ Improved | -1% | 0% |
This skill provides a set of best practices and patterns for creating ViewModels, Wizards, and managing navigation in Avalonia applications, leveraging the power of ReactiveUI and the Zafiro toolkit.
ReactiveObject, WhenAnyValue, etc.) to handle state and logic.IEnhancedCommand for better command management, including progress reporting and name/text attributes.SlimWizard and WizardBuilder for a declarative and maintainable approach.[Section] attribute to register and discover UI sections automatically.DataTypeViewLocator and manage dependencies in the CompositionRoot.SlimWizard.For real-world implementations, refer to the Angor project:
CreateProjectFlowV2.cs: Excellent example of complex Wizard building.HomeViewModel.cs: Simple section ViewModel using functional-reactive commands.Other measured skills in the registry, with their headline benchmark lift.