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; }