Browse Source

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.

pull/53/merge
gumme 12 years ago committed by Siegfried Pammer
parent
commit
a6af2f2022
  1. 4
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs

4
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlProperty.cs

@ -284,8 +284,8 @@ namespace ICSharpCode.WpfDesign.XamlDom @@ -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;

Loading…
Cancel
Save