← Todos os modelos

MVVM, comandos assíncronos, sem lógica no code-behind, testada em alta densidade de pixels.

Constitution — WPF desktop app

Version 1.0.0 · Ratified 2026-11-10

These principles hold for every spec, plan and task of the project. A spec may add rules; it never weakens these.

  1. MVVM. Views bind to view models through data binding, and view models know nothing about views. View models use ObservableObject and source-generated properties from CommunityToolkit.Mvvm.

  2. Async commands. Long work runs through IAsyncRelayCommand, an ICommand that disables itself while it runs. async void is only allowed in event handlers, and .Result or .Wait() on the UI thread fails the review.

  3. No logic in code-behind. Code-behind holds only InitializeComponent and purely visual concerns such as focus or animation. Any business or data logic there fails the review.

  4. High-DPI tested. The app manifest declares PerMonitorV2 DPI awareness, icons are vectors, and every window is checked at 100%, 150% and 200% scaling and when moved between monitors.

  5. Dependency injection and testable view models. Services and view models are registered in a Microsoft.Extensions.Hosting host and injected. View models are unit-tested without creating any window.

  6. Accessible and localizable. Controls have AutomationProperties.Name, every action works with the keyboard and the app is usable in high contrast themes. Visible strings live in resource files, never in XAML literals.