Open TeslaKang opened 12 months ago
3. https://www.codeproject.com/Articles/5359576/WinUI3-in-Existing-Win32-Applications Looking at the sample here, since Application::LoadComponent cannot be done directly from Windows resources, a temporary file is created and the Uri is specified as ms-appx://local/ before loading. So I don't want to create temporary files, and I think we should support reading directly from resources, or at least reading from memory.
4. I don't think you quite understood what I said. There is no problem at all in using it. The problem is that when you close WINUI after finishing using it, "DesktopWindowXamlSource" appears and remains on the task bar. My main program is an MFC program and displays the WinUI screen as a modal when necessary. When the modal is closed, "DesktopWindowXamlSource" appears in the task bar. Currently, I am temporarily solving the problem by finding and hiding the window with the title "DesktopWindowXamlSource", but I am wondering if there is a way to solve the problem fundamentally.
5. ok... So is there a way to use it without using Application in WinUI 3? WinUI3 can be used after initializing it as an application, but I am curious about how to use it without an application. The reason is that because Application has a message loop function, it conflicts with MFC's message loop, making it difficult to use with MFC.
I'm using WinUI3(use DesktopWindowXamlSource ) for only certain parts of an existing MFC App. In most cases, it works well and there are no major problems. However, I want to use compiled XAML rather than XAML source code.
1) Is there a way to compile XAML in an MFC project? If project type is Window Store project, can compile XAML.. But cannot compile XAML in an MFC project.
2) Similar to number 1, IDL cannot be compiled, so Runtime Type cannot be used. If there is a way, I would appreciate it if you could let me know.
3) When using Windows::UI::Xaml::Application::LoadComponent, etc., is there a way to use Windows' traditional resource file as Uri?
4) After using the DesktopWindowXamlSource function in Windows 10, if close DesktopWindowXamlSource , it is not completely close and "DesktopWindowXamlSource" is displayed on the taskbar. Is there a way to completely remove DesktopWindowXamlSource?
5) There are two types of WinUI3: those that start with "Microsoft ::UI::Xaml::" and those that start with "Windows.::UI::Xaml::". It seems that anything that starts with Microsoft can be used only after using bootstrap and initializing it as an Application. Anything that starts with Windows can be used without any special restrictions as long as it is a specific version of Windows 10 or higher.
Are there any differences between the two UI libraries?