wpf: design time error while writing Nested type in xaml

Posted by viky on Stack Overflow See other posts from Stack Overflow or by viky
Published on 2010-02-17T07:15:34Z Indexed on 2010/03/29 16:33 UTC
Read the original article Hit count: 389

Filed under:
|
|
|
|

I have created a usercontrol which accept type of enum and assign the values of that enum to a ComboBox control in that usercontrol. Very Simple. I am using this user control in DataTemplates. Problem comes when there comes nested type. I assign that using this notation

EnumType="{x:Type myNamespace:ParentType + NestedType}"

It works fine at runtime. but at design time it throws error saying

Could not create an instance of type 'TypeExtension'

Why? Due to this I am not able to see my window at design time. Any help?

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf