diff --git a/src/Uno.UI/UI/Xaml/Media/VisualTreeHelper.cs b/src/Uno.UI/UI/Xaml/Media/VisualTreeHelper.cs index 3a9f843192c1..ebbaac63966d 100644 --- a/src/Uno.UI/UI/Xaml/Media/VisualTreeHelper.cs +++ b/src/Uno.UI/UI/Xaml/Media/VisualTreeHelper.cs @@ -363,7 +363,9 @@ private static (UIElement? element, Branch? stale) SearchDownForTopMostElementAt // The maximum region where the current element and its children might draw themselves // TODO: Get the real clipping rect! For now we assume no clipping. // This is expressed in element coordinate space. - var clippingBounds = Rect.Infinite; + // For some controls imported from WinUI, such as NavigationView, + // the Clip property may be significant. + var clippingBounds = element.Clip?.Bounds ?? Rect.Infinite; // The region where the current element draws itself. // Be aware that children might be out of this rendering bounds if no clipping defined. TODO: .Intersect(clippingBounds)