Replies: 1 comment 3 replies
-
Since you don't show the namespace, I would have to assume from the information provided that you are trying to use Windows.UI.Xaml.Hosting.DesktopWindowXamlSource here. To put it simply, DesktopWindowXamlSource is unable to host WinUI 3 controls. As the documentation states, DesktopWindowXamlSource is able to host any control that derives from Windows.UI.Xaml.UIElement, and WinUI 3 controls do not derive from this. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Guys,
I have the following win32 code, which load an Xaml page (MainPage.xaml) into the content.
It works fine if I just use widgets under Windows.UI.Xaml.Controls. But when I'm trying to add widget from WinUI3, it will fail. Here is my MainPage.xaml
the InfoBar will fail to add. I've linked against the MddBootstrapAutoInitializer.cpp, so, WindowsAppsRuntime should be bootstrapped correctly. Should I add some activatableClass entries in the SxS manifest? Many thanks!
Beta Was this translation helpful? Give feedback.
All reactions