We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05f4a57 commit bce4b14Copy full SHA for bce4b14
src/Uno.UI/UI/Xaml/Controls/Popup/Popup.WithPopupRoot.cs
@@ -79,6 +79,14 @@ partial void OnIsOpenChangedPartialNative(bool oldIsOpen, bool newIsOpen)
79
{
80
if (newIsOpen)
81
82
+#if !HAS_UNO_WINUI
83
+ // In UWP, XamlRoot is set automatically to CoreWindow XamlRoot if not set beforehand.
84
+ if (XamlRoot is null)
85
+ {
86
+ XamlRoot = CoreServices.Instance.ContentRootCoordinator.CoreWindowContentRoot.XamlRoot;
87
+ }
88
+#endif
89
+
90
#if !__SKIA__ // The OpenPopup method should be moved out of Window in general https://github.com/unoplatform/uno/issues/8978
91
_closePopup.Disposable = Window.Current.OpenPopup(this);
92
#else
0 commit comments