Windows
6 documents
Architecture
Use MVVM with [CommunityToolkit.Mvvm](https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/) — source-gener...
Design-Time Data
- Use `d:DataContext` and `d:DesignInstance` for XAML designer preview data
csharpwindows
Fluent Design
Use built-in WinUI 3 controls — they implement Fluent 2 natively. Never custom-draw what a standard control can do.
csharpwindows
High DPI / Display Scaling
XAML layout uses effective pixels (epx) — scaling is automatic for all XAML-rendered content.
csharpwindows
MSIX Packaging
- Use the single-project MSIX packaging model
windows
Theming
WinUI 3 supports tri-state theming: Light, Dark, and High Contrast.
csharpwindows