views:

23

answers:

2

I am trying to set the type of an application setting property to a custom enum type I have defined in my assembly (call this Project A)

In the settings browser I click browse and am presented with the "Select a Type" dialog box.

And the Types defined in Project A are not seem to be available to me. Yet types are available from other projects that A has referenced.

It seems almost beyond comprehension to me that one would not be able to use Types defined in the base project, so I assume I am doing something wrong. I have tried building, cleaning, rebuilding, restarting without any luck, so what exactly am I missing?

edit: screenshot here http://tinypic.com/r/2ls8myb/7

+1  A: 

Because your own type is not serializable. Make it serializable and you can define it in your settings.

cevik
Hi. I marked the type as serializable. After a clean and rebuild it was still not visible. Can I ask why other types from other assemblies which are not marked as serializable are visible in the Type Browser?
fostandy
+1  A: 

Thanks to Jakob:

http://blog.coretech.dk/scripting/add-custom-data-type-structure-to-mysettings-in-vbnet-wpf/

Xaqron
This seemed to do the trick. Thanks!
fostandy