You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As shown in the picture, the code generated by App.xaml of WinUI 3 (left) contains the LoadComponent method, which can load the corresponding App.xaml file, but the corresponding implementation is not included in UWP (right). If you change App.xaml to something else in Xaml islands, such as TestApp.xaml, the application will fail at startup because the resource cannot be found
The text was updated successfully, but these errors were encountered:
Why doesn't the code generated by UWP's App.xaml contain the LoadComponent method
------------------------------------
为什么
UWP
的App.xaml
生成的代码没有包含LoadComponent
方法如图片所示,
WinUI 3
(左侧)的App.xaml
生成的代码WinUIApp.g.i.cs
包含LoadComponent
方法,可以加载对应的App.xaml
文件,但在UWP
(右侧) 中却没有包含相应的实现,如果在Xaml islands
中,将App.xaml
修改成其他名称(比如TestApp.xaml
),应用程序在启动时会因为找不到资源而失败As shown in the picture, the code generated by
App.xaml
ofWinUI 3
(left) contains theLoadComponent
method, which can load the correspondingApp.xaml
file, but the corresponding implementation is not included inUWP
(right). If you changeApp.xaml
to something else inXaml islands
, such asTestApp.xaml
, the application will fail at startup because the resource cannot be foundThe text was updated successfully, but these errors were encountered: