Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Implements Model-View-ViewModel in .NET apps using MVVM Toolkit (CommunityToolkit.Mvvm) for ViewModels, commands, and messaging.
Use this skill ↓86% 91%+5 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 19 of 22 without it.
Write a XAML snippet for a page displaying a list of products and a refresh button, using high-performance compiled bindings referencing a ProductListViewModel.
Uses x:Bind syntax for data binding
3 of 3 safety checks passed
[ObservableProperty]
private string _name = string.Empty;
[ObservableProperty]
private int _quantity;
partial void OnQuantityChanged(int oldValue, int newValue)
{
// React to change
OnPropertyChanged(nameof(Total));
}
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(SaveCommand))]
[NotifyCanExecuteChangedFor(nameof(DeleteCommand))]
private bool _isValid;
[ObservableProperty]
[NotifyDataErrorInfo]
[Required(ErrorMessage = "Name is required")]
[MinLength(2, ErrorMessage = "Name must be at least 2 characters")]
private string _name = string.Empty;
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.