fred
fred

Reputation:

WPF: how to display enum property values in VS2008 XAML editor intellisense?

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?

Upvotes: 4

Views: 2553

Answers (2)

Daniel Pratt
Daniel Pratt

Reputation: 12077

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.

Upvotes: 1

Drake
Drake

Reputation: 8392

The question was asked also here:

How can I get IntelliSense to auto-complete an enum on a custom/user control in XAML?

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

Upvotes: 0

Related Questions