# WPF Rules For WPF, XAML, or MVVM work, open only the focused topic rules relevant to the change. WPF code is C#: load the matching C# topic rules (`rules/csharp/index.md` / `rules-csharp`) for language, async, and API guidance, and the shared security rules (`rules/security/index.md` / `rules-security`) for security-relevant changes. | Topic | Codex rule | Claude skill | | --- | --- | --- | | MVVM and binding | `references/mvvm-and-binding.md` | `rules-wpf-mvvm-and-binding` | | Commands, async, and threading | `references/commands-and-async.md` | `rules-wpf-commands-and-async` | | Collections and XAML | `references/collections-and-xaml.md` | `rules-wpf-collections-and-xaml` | | Resources and lifecycle | `references/resources-and-lifecycle.md` | `rules-wpf-resources-and-lifecycle` | | Security, errors, logging, and validation | `references/security-and-errors.md` | `rules-wpf-security-and-errors` | | Architecture, dependency injection, testing, and performance | `references/architecture-and-quality.md` | `rules-wpf-architecture-and-quality` | | Accessibility, DPI scaling, and theming | `references/accessibility-and-theming.md` | `rules-wpf-accessibility-and-theming` |