MaterialDesignInXAML / MaterialDesignInXAML/MaterialDesignInXamlToolkit
Modal is always on top even if application has no focus
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 16.3k
- Forks
- 3.5k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 8
Description
Bug explanation
Hi,
My WPF app is set to startup at Windows launch, when it opens it checks if the end user has added their credentials, and if not asks for them in a modal. However, even if the Mainwindow does not have focus, the modal still goes on top of any other open application.
Is this something that can be changed with some (minor) tweaks?
Screenshot below showing modal over File Explorer (which has focus), with main app behind that.

Version
4.5.0
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no source files, tests, or entry points. Reproduce the WPF startup flow with missing credentials while another application has focus, then trace the modal window behavior. Done means the credential modal no longer appears above the focused application when the main window is unfocused.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100