What problem does it solve?
Writing ViewModels with CommunityToolkit.Mvvm requires knowing the exact source-generator attributes, naming rules, and base classes, and small mistakes like forgetting partial or [NotifyCanExecuteChangedFor] cause confusing compile errors or silently broken UI bindings.
Core Features & Use Cases
- Source Generator Guidance: Covers
[ObservableProperty], [RelayCommand], [NotifyPropertyChangedFor], [NotifyCanExecuteChangedFor], and [NotifyDataErrorInfo] with generated-code examples and naming rules.
- Command Recipes: Provides sync, async, cancellable, concurrent, and error-surfacing
RelayCommand/AsyncRelayCommand patterns ready to adapt.
- Validation & Troubleshooting: Explains
ObservableValidator with DataAnnotations, custom validation attributes, and a full MVVMTK0xxx diagnostic table.
- Use Case: You are building a WinUI 3 settings form and need a ViewModel with validated inputs, a Save button that enables only when input is valid, and async save with cancellation — this Skill provides the exact attribute combination and code pattern.
Quick Start
Ask the AI to create a CommunityToolkit.Mvvm ViewModel with an observable property, an async save command with CanExecute, and validation attributes for a registration form.