开发者

Dialog Box Property Value Editor

开发者 https://www.devze.com 2022-12-24 00:06 出处:网络
i am new to WPF and i want to create user control with Dialog 开发者_C百科Box Property Value Editor in VB.NET.

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

精彩评论

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

关注公众号