Grid-Based Sliding Panel Content Misalignment When Visibility Changes Programmatically #27434
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
p/2
Work that is important, but is currently not scheduled for release
partner/syncfusion
Issues / PR's with Syncfusion collaboration
platform/iOS 🍎
platform/macOS 🍏
macOS / Mac Catalyst
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
When implementing a custom NavigationDrawer using a Grid in .NET MAUI, the content of the drawer layout visibility is set to false initially, and then programmatically changed to true, causing content misalignment issues. Specifically:
This behavior suggests a potential layout invalidation issue when toggling visibility programmatically.
Sample: DrawerCustomSample.zip
Video: Demo
Steps to Reproduce
Link to public reproduction project repository
No response
Version with bug
9.0.30 SR3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
No response
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
If the DrawerContent's visibility is set to true while the drawer is open, the controls align and render correctly.
SlingPanel_Workaround.mp4
The text was updated successfully, but these errors were encountered: