From a6af2f2022c71547f4f87480ddc547de9f27ea57 Mon Sep 17 00:00:00 2001 From: gumme <gumme@server.fake> Date: Mon, 17 Jun 2013 22:13:58 +0200 Subject: [PATCH] Its WPF standard to use parent type name as prefix before the dot when declaring a property as XAML element, and NOT the name of the type that declares the property. --- .../WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs index 54293d7738..3e2a900f07 100644 --- a/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs +++ b/src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs @@ -284,8 +284,8 @@ namespace ICSharpCode.WpfDesign.XamlDom if (collectionElements.Count == 0 && this.PropertyName != this.ParentObject.ContentPropertyName) { // we have to create the collection element _propertyElement = parentObject.OwnerDocument.XmlDocument.CreateElement( - this.PropertyTargetType.Name + "." + this.PropertyName, - parentObject.OwnerDocument.GetNamespaceFor(this.PropertyTargetType) + ParentObject.ElementType.Name + "." + this.PropertyName, + parentObject.OwnerDocument.GetNamespaceFor(ParentObject.ElementType) ); parentObject.XmlElement.AppendChild(_propertyElement); collection = _propertyElement;