drizzt
drizzt

Reputation: 2886

Dialog Box Property Value Editor

i am new to WPF and i want to create user control with Dialog Box Property Value Editor in VB.NET. i find this example in C# and rewrite it to VB.NET but it does not work. Is creating property value editor in VB.NET somehow special, because i can`t find examples in VB.NET

thanks

Upvotes: 0

Views: 840

Answers (2)

Karl Hamann
Karl Hamann

Reputation: 23

I know, this is an old question, but I fought with the same (?) problem and it took me one day to figure it out, so maybe this helps someone else. At the end it was quite simple. I used the example mentioned above to wrote my own control and first it didn't work, the editor was not used. Thanks to this article I learned, that there is a naming convention. You have to name your design time assembly like your control and add '.design' at the end. Only then this assembly will be used as a design time assembly.

Upvotes: 1

itowlson
itowlson

Reputation: 74812

No, there's nothing special about writing property editors or any other kind of control or component in VB.NET versus C#. It's just that a lot of WPF samples are written in C#, perhaps because the VB.NET community has been more conservative about adopting WPF [citation needed]. You should do just fine by translating the C# code you find to VB in the normal way; you shouldn't need to change the XAML of course.

Upvotes: 0

Related Questions