WPF中的用户控件 [英] Usercontrol in WPF

查看:79
本文介绍了WPF中的用户控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在VB中编写了用户控件,但最后我想转向使用WPF.
等价的是什么?
例如,我如何编写形状的控件?

I have written usercontrols in VB, but at last I want to move to using WPF.
What is the equivalent?
eg How can I write a control that is shaped?

推荐答案

我已经在VB中编写了用户控件


如果您正在寻找同情心,那么您来错地方了.

但最后我想转向使用WPF


好消息是您可以使用XAML或实际代码来控制外观和功能.坏消息是您必须手动将其转换.

您也许可以使用WPF的Winforms互操作性功能按原样使用控件,但是我不会在这个赌注上花太多钱.
I have written usercontrols in VB


If you''re looking for sympathy, you''ve come to the wrong place.

but at last I want to move to using WPF


The good news is that you can use XAML or actual code to control the appearance and functionality. The bad news is that you have to convert it manually.

You may be able to use the Winforms interoperability functionality of WPF to use the controls as is, but I wouldn''t put too much money on that bet.


这篇关于WPF中的用户控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆