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

后端 未结 2 1659
孤独总比滥情好
孤独总比滥情好 2021-01-06 07:43

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

相关标签:
2条回答
  • 2021-01-06 08:18

    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.

    0 讨论(0)
  • 2021-01-06 08:24

    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.

    0 讨论(0)
提交回复
热议问题