From 415e2f0785a1e8b1333144ef0a3439da4457602b Mon Sep 17 00:00:00 2001 From: awraae Date: Tue, 30 May 2017 13:24:35 +0200 Subject: [PATCH] Fixed a bug for root nodes with namespace prefix --- WpfDesign.XamlDom/Project/XamlDocument.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WpfDesign.XamlDom/Project/XamlDocument.cs b/WpfDesign.XamlDom/Project/XamlDocument.cs index 3336c7c..8b60de9 100644 --- a/WpfDesign.XamlDom/Project/XamlDocument.cs +++ b/WpfDesign.XamlDom/Project/XamlDocument.cs @@ -285,7 +285,7 @@ namespace ICSharpCode.WpfDesign.XamlDom string prefix = _xmlDoc.DocumentElement.GetPrefixOfNamespace(@namespace); - if (_xmlDoc.DocumentElement.NamespaceURI == @namespace && _xmlDoc.Prefix == String.Empty) + if (_xmlDoc.DocumentElement.NamespaceURI == @namespace && _xmlDoc.DocumentElement.Prefix == String.Empty) { return string.Empty; }