views:

1141

answers:

3

i created a wpf custom control with a dependency property of an enum type. i want the user of that control when editing the xaml in vs to see the optional values of the enum in the intellisense window. does anyone know how it can be done?

A: 

The question was asked also here:

http://stackoverflow.com/questions/596089/how-can-i-get-intellisense-to-auto-complete-an-enum-on-a-custom-user-control-in-x/596145

There is an answer but it's not marked, maybe you can try the suggestion and come back with the result of your test.

marco.ragogna
I've posted some steps to get this to work in the link above: http://stackoverflow.com/questions/596089
Dylan
+1  A: 

I believe it will work if you add an "XmlnsDefinition" attribute to the assembly containing the control. By the way, I ran into problems with this when trying to reference the control in the same project.

Daniel Pratt
A: 

checkout this link. You will idea about how to do that.

http://stackoverflow.com/questions/1857967/using-enum-as-a-dependency-property-in-wpf

Vinod