From wpf-dev-pack
Manages focus behavior for WPF Popup controls using PreviewMouseDown events and window activation. Use when Popup loses focus unexpectedly or needs to stay open during user interaction.
npx claudepluginhub christian289/dotnet-with-claudecode --plugin wpf-dev-packThis skill uses the workspace's default tool permissions.
In WPF, the Popup control only operates correctly when the WPF Application has focus. When focus moves to another application, the Popup may not display or function properly.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
In WPF, the Popup control only operates correctly when the WPF Application has focus. When focus moves to another application, the Popup may not display or function properly.
When using the Popup control in WPF, you must forcibly acquire focus through the PreviewMouseDown event.
The templates folder contains a WPF project example (use latest .NET per version mapping).
templates/
└── WpfPopupSample.App/ ← WPF Application
├── Views/
│ ├── MainWindow.xaml
│ └── MainWindow.xaml.cs ← Focus management pattern implementation
├── App.xaml
├── App.xaml.cs
├── GlobalUsings.cs
└── WpfPopupSample.App.csproj
Window.GetWindow(this)?.Activate()⚠️ Important Notes: