Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

[WPF/MapControl] MapControl is on top of every other control #320

Open
3 of 9 tasks
meJevin opened this issue May 31, 2021 · 7 comments
Open
3 of 9 tasks

[WPF/MapControl] MapControl is on top of every other control #320

meJevin opened this issue May 31, 2021 · 7 comments
Labels
bug 🐛 Something isn't working XamlIslands 🏝️

Comments

@meJevin
Copy link

meJevin commented May 31, 2021

When using MapControl I am unable to place any other controls in WPF on top of it. It seems to be on top of everything for some reason.

I've not seen a version where this is fixed.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to Reproduction repo link
  2. Go to Source folder
  3. Open MapControlBug.sln solution
  4. In MainWindow.xaml verify that the button with content Hello is rendered over the MapControl in the XAML previewer.
  5. Run the application and verify that MapControl is rendered on top of the aforementioned Button

Expected behavior

MapControl should respect z index of other controls

Screenshots

How it looks in the previewer:
image
How it looks when I run the app:
image

Environment

WPF, .Net Core 3.1, Windows 10.
NuGet Package(s):
Microsoft.Toolkit.Wpf.UI.Controls
Package Version(s):
Microsoft.Toolkit.Wpf.UI.Controls: 6.1.2

Project .NET Version:

  • .NET Framework (version: )
  • .NET Core 3
  • .NET Core 3.1

Windows 10 Build Number:

  • 21390.1

Device form factor:

  • Desktop
  • Xbox
  • Surface Hub
  • IoT

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
@meJevin meJevin added the bug 🐛 Something isn't working label May 31, 2021
@ghost ghost added the needs triage 🔍 label May 31, 2021
@ghost
Copy link

ghost commented May 31, 2021

Hello meJevin, thank you for opening an issue with us!

I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌

@ghost
Copy link

ghost commented Jun 15, 2021

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@ghost ghost added the needs attention 👋 label Jun 15, 2021
@ghost
Copy link

ghost commented Jun 30, 2021

This issue has been marked as "needs attention 👋" due to no activity for 15 days. Please triage the issue so the fix can be established.

@michael-hawker
Copy link
Member

FYI @marb2000

@geocine
Copy link

geocine commented Jun 15, 2022

I get the same issue with MediaPlayerElement . I assume it is the case for all UWP controls hosted on WPF? Is there any work around?

@michael-hawker
Copy link
Member

I believe this is a general airspace issues, I thought Winforms host behaved the same way? Not sure if there's anything to be done. Thought there was a note somewhere about this... @marb2000?

@marb2000
Copy link
Contributor

You are right @michael-hawker it looks like air-space issues.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🐛 Something isn't working XamlIslands 🏝️
Projects
None yet
Development

No branches or pull requests

4 participants