What problem does it solve?
This Skill guides developers in adhering to WinUI 3 and MVVM best practices for the Pomodoro Time Tracker, preventing common pitfalls and ensuring consistent, maintainable, and performant UI code. It helps avoid common errors and promotes a clean architecture for the presentation layer.
Core Features & Use Cases
- MVVM Best Practices: Enforces the use of
x:Bind over Binding and discourages value converters, leading to cleaner, compile-time-checked, and more readable XAML.
- Project-Specific Conventions: Details dependency injection registration for ViewModels (Singleton vs. Transient) and UI services, ensuring proper lifecycle management.
- Common Mistakes: Highlights critical errors to avoid in WinUI 3 development, such as incorrect
InitializeComponent placement or misuse of async void.
- Use Case: When developing a new XAML page or ViewModel, activate this Skill to ensure your code adheres to project standards, uses correct binding modes, and avoids common WinUI 3 pitfalls, saving review time and refactoring effort.
Quick Start
Explain the correct way to bind a TextBox to a ViewModel property in WinUI 3 using the winui-patterns skill, including the recommended binding mode.