-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Couldn't xaml host controls from the WinUI 3 library #7029
Comments
TypeName and TypeKind are still under the Windows namespace. Can you try updating this and see if that resolves your issues? |
When replacing namespace Microsoft with Windows, the XamlTypeInfo.g.cpp file generate build errors like, |
The links you posted are for hosting UWP controls, not WinUI 3 controls |
Little bit confused here. So it is not available as an experimental feature in Windows App SDK 1.0, is it? But the WinUI roadmap table ( https://github.com/microsoft/microsoft-ui-xaml/blob/main/docs/roadmap.md ) shows it is available. |
I would like to update my .NET apps to the newest .NET Core and then use WindowsAppSDK and XAML Islands but the future for XAML Islands is unclear. I see that MS team want to focus on XAML Islands only for C++ 😞 |
@bpulliam is there documentation you can point to for Xaml Islands? |
Hi, could anyone give me an update on using Xaml island with WinUI3 please? We have an old MFC based application and would like to update it to use WinUI3. If it is already available to use, could you let me know the web page explaining how to use it (i.e. example code) please? If it is not available, could you let me know when it will be available please? |
Is there any sample or document available for hosting WinUI3 custom controls in an existing Win32 application as a part of modernization? |
As posted in some other threads (by DarranRowe or myself), a basic way is with Microsoft.UI.Xaml.Hosting.DesktopWindowXamlSource (like in old C++/Win32/UWP XAML Islands) |
|
I just uploaded a test sample in WinForms/C# : CSharp_WinUI3_DesktopWindowXamlSource |
@castorix, with your wpf source, can winUI3 element stretch following windows resizing? |
Did you resize the container window ? (I did not resize it in my test on sizing event/message) |
yes, I receive sizechanged message and resize the container window, but it also has black region when resize |
No, the black region will overlap WinUI element when resize... But today, I cannot reproduce anymore :((. |
According to WinUI roadmap table, which is available in the following link https://github.com/microsoft/microsoft-ui-xaml/blob/main/docs/roadmap.md the XAML Islands is available as experimental feature in Windows App SDK 1.0. I have been trying to modernize an existing Win32 app with WinUI 3 ( used template : [Experimental] Blank App (WinUI 3 in UWP) , C++ ) by using the steps described in the following page https://docs.microsoft.com/en-us/windows/apps/desktop/modernize/host-custom-control-with-xaml-islands-cpp. But when replacing namespace Windows with Microsoft, the app.base.h file generating build errors like,
'TypeName': is not a member of 'winrt::Microsoft::UI::Xaml::Interop' (compiling source file App.cpp).
So, what is the proper way for hosting controls from the WinUI 3 library using XAML Islands ?
and is any document available for hosting controls from the WinUI 3 library with XAML Islands support ?
The text was updated successfully, but these errors were encountered: