Access the contents of packed resource dictionary in WPF

时间:2018-12-26 20:44:32

标签: wpf xaml resourcedictionary pack app.xaml

How can I access and view the contents of a resource from a 3rd party library in WPF using Visual Studio.

<ResourceDictionary Source="pack://application:,,,/XXX;component/Styles/Components.xaml" />

1 个答案:

答案 0 :(得分:1)

XAML被编译为BAML,因此,如果您具有已编译的第三方程序集,则需要一个可以将BAML反编译为XAML的反编译器。这样的反编译器的示例是dotPeek

如果下载(免费)并打开其中的XXX程序集,如果您在树状视图中寻找Styles/Components.xaml,则应该能够看到components.baml的XAML标记。组装浏览器。

有关如何使用dotPeek的更多信息,请访问JetBrain的网站:https://www.jetbrains.com/decompiler/features/