dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

MAUI + Android: missing or misplaced adorners #7869

Open etvorun opened 2 years ago

etvorun commented 2 years ago

Description

Adorners are missing or misplaced when using XAML Live Preview + XAML Hot Reload in VS

Steps to Reproduce

  1. New MAUI app
  2. Build and run on Android Emulator
  3. Open XLP.
  4. Open LVT and hover over elements Actual: no adorners in XLP Expected: adorners in XLP
  5. Enable element selection in XLP and hover over elements Actual: info tips but no adorners Expected: info tips and adorners
  6. Open App.xaml.cs and change MainPage = new AppShell(); to MainPage = new MainPage();
  7. F5 and repeat step 5 Actual: adorners are in the wrong place Expected: adorners are in the right place

Version with bug

6.0 Release Candidate 3

Last version that worked well

Release Candidate 1

Affected platforms

Android

Affected platform versions

Android 29

Did you find any workaround?

No response

Relevant log output

No response

Eilon commented 1 year ago

@drasticactions - is there any action required for this?

drasticactions commented 1 year ago

@Eilon If memory serves, the issue was with Shell specifically. If you enabled Shell, it would not render the Adorner layer, whereas if you removed it, it would work fine.

I would verify if this is still happening in the newest version. If it is, I and @PureWeen will probably need to work together.

Enbi-Zhang commented 1 year ago

Verified this issue with 17.6.0 Preview 7.0. Repro on Android emulator with project 7869.zip. 1 3