--- name: wpf-review description: Use when reviewing WPF, XAML, or MVVM desktop changes, including bindings, commands, resources, accessibility, lifecycle, and UI-thread behavior. --- # WPF Review Use when reviewing WPF, XAML, or MVVM desktop changes. Route all findings into the `review-pull-request` report, not a separate one. Load `rules-wpf` and follow its index to the matching `rules-wpf-*` topic skills, including `rules-wpf-accessibility-and-theming` and `rules-wpf-security-and-errors`. ## Review - Trace `DataContext`, binding paths, update modes, validation, and `INotifyPropertyChanged` behavior. Check collection updates and selection state. - Review commands for enablement, asynchronous execution, cancellation, exception handling, and UI-thread affinity. - Check resource dictionaries, styles, templates, and resource lookup scope. Check per-monitor DPI scaling and high contrast themes. - Inspect control names, focus and keyboard behavior, automation properties, and error feedback for accessibility. - Check that global exception handlers (`DispatcherUnhandledException`, `TaskScheduler.UnobservedTaskException`, `AppDomain.CurrentDomain.UnhandledException`) are wired once at startup. - Check view and window lifetime, event subscriptions, disposal, timers, and owned resources for leaks or stale references. - Review converters, dependency properties, and virtualization for correctness and practical performance. Report findings in the `review-pull-request` finding schema and severity scale. Use the view, binding, or lifecycle path as the location. Avoid framework-wide advice unrelated to the diff.