开发者

Dialog Box Property Value Editor

i am new to WPF and i want to create user control with Dialog 开发者_C百科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


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜