Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Builds, maintains, and modernizes Windows Forms apps using MVP separation, designer-safe UI, data binding, and .NET migration guidance.
83% 96%+13 ptsof test cases passed
Passed 22 of 23 test cases with the skill, and 19 of 23 without it.
We are designing a cross-platform mobile app in .NET MAUI. Which design pattern should be used to separate UI view layout from application logic?
Uses XAML data bindings targeting view model properties.
3 of 3 safety checks passed
.Designer.cs directly; changes are lost on regeneration.// View interface — forms implement this
public interface ICustomerView
{
string CustomerName { get; set; }
event EventHandler SaveRequested;
void ShowError(string message);
}
// Presenter — testable without UI
public class CustomerPresenter
{
private readonly ICustomerView _view;
private readonly ICustomerService _service;
public CustomerPresenter(ICustomerView view, ICustomerService service)
{
_view = view;
_service = service;
_view.SaveRequested += async (s, e) =>
{
try { await _service.SaveAsync(_view.CustomerName); }
catch (Exception ex) { _view.ShowError(ex.Message); }
};
}
}
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.