Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何从WPF应用程序中检查和提取XAML样式?_C#_.net_Wpf_Xaml_Resourcedictionary - Fatal编程技术网

C# 如何从WPF应用程序中检查和提取XAML样式?

C# 如何从WPF应用程序中检查和提取XAML样式?,c#,.net,wpf,xaml,resourcedictionary,C#,.net,Wpf,Xaml,Resourcedictionary,我想从WPF应用程序资源字典中提取XAML样式,如下所示: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ig

我想从WPF应用程序资源字典中提取XAML样式,如下所示:

<ResourceDictionary
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008">
....

....

您可能正在寻找,使用BAML viewer甚至。

哦,我不知道您在说什么。你能澄清你的问题吗?这是你的申请吗?你有源代码吗?我不明白你的问题是什么,但如果你试图导入命名空间,你可以这样做:
xlmns:someName=“clr namespace:MyNamespace”
。如果名称空间位于不同的程序集中,请添加
;assembly=AssemblyName
到此结束。@cheedep我没有源代码。谢谢,这正是我要找的!