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/43/head
gumme 12 years ago
parent
commit
990068d322
  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