by sickn33
创建可维护的Avalonia应用程序需要一致的ViewModel模式和导航结构。本技能提供经过验证的ReactiveUI和Zafiro工具包模式,用于健壮的UI开发。
1. 打开 Claude 聊天界面
2. 点击下方 "📋 复制" 按钮
3. 粘贴到 Claude 聊天框中并发送
4. 输入 "使用 avalonia-viewmodels-zafiro 技能" 开始使用
=== avalonia-viewmodels-zafiro 技能 === 作者: sickn33 描述: 创建可维护的Avalonia应用程序需要一致的ViewModel模式和导航结构。本技能提供经过验证的ReactiveUI和Zafiro工具包模式,用于健壮的UI开发。 使用方法: 1. 调用技能: "使用 avalonia-viewmodels-zafiro 技能" 2. 提供相关信息: 根据技能要求提供必要参数 3. 查看结果: 技能会返回处理结果 示例: "使用 avalonia-viewmodels-zafiro 技能,帮我分析一下这段代码"
这种方法适用于所有 Claude 用户,不需要安装额外工具。
coding
safe
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.View Count
0
Download Count
0
Favorite Count
0
Quality Score
71