Browse Source

Better Error MEssage -> Show wich Property is doubled

pull/586/head
jogibear9988 11 years ago
parent
commit
a79ea00a1f
  1. 2
      src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlObject.cs

2
src/AddIns/DisplayBindings/WpfDesign/WpfDesign.XamlDom/Project/XamlObject.cs

@ -70,7 +70,7 @@ namespace ICSharpCode.WpfDesign.XamlDom @@ -70,7 +70,7 @@ namespace ICSharpCode.WpfDesign.XamlDom
if (property.IsAttached == false) {
foreach (XamlProperty p in properties) {
if (p.IsAttached == false && p.PropertyName == property.PropertyName)
throw new XamlLoadException("duplicate property");
throw new XamlLoadException("duplicate property:" + property.PropertyName);
}
}
#endif

Loading…
Cancel
Save