lepoco / lepoco/wpfui

ContentPresenter Dialog Appears Behind WebView Loaded from Navigation

Open
#1,389 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C#
Stars
9.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

One of these pages contains a WebView, and that page has a button that triggers a custom dialog through a ContentPresenter defined in the MainWindow.The custom dialog appears behind the WebView. This only happens on pages containing the WebView; other pages work fine.
https://stackoverflow.com/questions/79527786/wpf-ui-contentpresenter-dialog-appears-behind-webview-loaded-from-navigation

To Reproduce

Create a page with webview and then show customdialog

Expected behavior

custom dialog should visible top of the window

Screenshots

No response

OS version

Win 11

.NET version

8.0

WPF-UI NuGet version

latest

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue on Windows 11 with .NET 8 and the latest WPF-UI version: create a navigated page containing a WebView and a button that opens the custom dialog. Inspect the MainWindow ContentPresenter and the page's WebView behavior; done means the dialog consistently appears above the WebView while other pages continue to work.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.