CommunityToolkit / Microsoft.Toolkit.Win32

ARCHIVE - This repository contained XAML Islands wrapper controls and tooling for XAML Islands with WinUI 2, see readme for more info about XAML Islands with WinUI 3 and the WindowsAppSDK.
https://aka.ms/windowsappsdk
Other
383 stars 89 forks source link

WebView in Wpf wont follow z index inside canvas element. #53

Open suvish opened 5 years ago

suvish commented 5 years ago

I'm submitting a...

Bug report (I searched for similar issues and did not find one)

Current behavior

microsoft.toolkit.wpf.ui.controls.webview control won't honor the Z index property of canvas element. If I add children in canvas element whatever be the z index, webview will be the topmost element.

Expected behavior

The canvas element should honor z index property

### Minimal reproduction of the problem with instructions the z index of different elements are shown in image .here webview index with 1 should be below text views but its on top of others. zindexreport

Environment

Nuget Package(s): Microsoft.Toolkit.Wpf.UI.Controls.Webview

Package Version(s): 5.0.0.0

Windows 10 Build Number:

App min and target version:

Device form factor:

Visual Studio

net Framework Target:4.6.2

kbrons commented 5 years ago

What system are you using for testing? Does this happen with the same page on Edge/UWP with WebView?

Please try to complete the template, as it'll help us identify the context, possible causes and reproduce it easier.

nmetulev commented 5 years ago

AFAIK, this is expected; ie, uwp views (webview, xaml islands) are always drawn on top of any other UI. @azchohfi, to keep me honest

MrArca9 commented 5 years ago

Is there a parameter we can use to pass KeyDown through the window? I have an application that goes fullscreen and uses ESC to exit, however the window cannot capture the keydown event because it's captured by the element.

Now i know that's expected behaviour, because people need to be able to interact with the webviewer, but is their a flag we can trip to allow keydown to:

Copy - Push keydown through element tree Passthrough - never handle keydown

atiyka commented 3 years ago

Hi all, I was also facing this issue, is there any update on this thread? Possible solutions/workarounds? I have a ListView inside of my WPF application and I'm using XamlIslands to display win10 WebView (Microsoft.Toolkit.Wpf.UI.Controls.WebView) inside the list elements. When I scroll in the list view, the WebView goes over the top bar and covers the minimize/maximize buttons as well. This is not what I expect. What possibilities do I have to do not cover the top bar?