This article is a mirror article of machine translation, please click here to jump to the original article.

View: 28410|Reply: 0

[New Issue] Problem with decompiled XAML files

[Copy link]
Posted on 4/7/2020 10:50:21 AM | | |
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.




Previous:How to make a computer control in Yi language, and how to make a computer control end in e4a.
Next:ASP.NET Core view uses Blazor's image captcha
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com