There are two decompiled C# projects (tentatively referred to as Project A and Project B), both of which have some interface design files that run fine in Visual Studio when decompiled into baml files. However, the baml file is not easy to change, and it needs to be xaml to be easier to change.
If you decompile these interface designs into XAML files, the project will not work properly.
Later, after exploring in Project A, I found that you can first set the [Generate Operation] in all xaml file properties to [Page], run the project, and then change the [Generate Operation] in those properties to [Resource], and then run the project normally. This is done every time you modify the XAML file.
![]()
(If it is a baml file, the property item is [Resource] by default, and it will run normally.) )
However, when it comes to project B, it is not possible to operate like project A, and this kind of error will occur:
![]() What should you do in this situation?
I looked at the cs file in the project, which uses Application.LoadComponent to load the xaml.
|