Property was already registered


hi

i have exception in expression blend, occurs in conjunction datagridcontrol xceed (www.xceed.com). i post in blend-forum becaus think not realy xceed-problem. in visual studio , @ runtime works perfectly.

the exception occurs when open xaml-file datagrid control:

exception: type initializer 'xceed.wpf.datagrid.datagridcontrol' threw exception    innerexception: 'celleditordisplayconditions' property registered 'frameworkelement'.

when dissasemble xceed-code, can find following code, exception thrown:

static datagridcontrol()  {      '...      celleditordisplayconditionsproperty = dependencyproperty.register("celleditordisplayconditions", typeof(celleditordisplayconditions), typeof(frameworkelement), new frameworkpropertymetadata(celleditordisplayconditions.none, frameworkpropertymetadataoptions.inherits));        '...  }  


because in static constructor, should called once, , so i can't see problem.

but that, expression blend tells me, property registered.

thx helping.

jan

instead of using typeof(frameworkelement) owner type, can use typeof(datagridcontrol)

 

this prevent expression blend generate error.



Expression  >  Expression Blend + SketchFlow



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

job syspolicy_purge_history job fail in sqlserver 2008

Trying to register with public marketplace error with 'Get-AzureStackStampInformation'