在Windows窗体.net应用程序中使用Canvas [英] Using Canvas in Windows Form .net application

查看:166
本文介绍了在Windows窗体.net应用程序中使用Canvas的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个 Winform 应用程序,它显示 Datagrid Charts 就可以了。我的要求是,用户应该能够根据他的选择放置这些元素,就像我们放置文本框标签在winform设计视图。我知道在WPF中有一个 Canvas 类,但是我想用 Winforms 来实现。

I want to create a Winform application which displays Datagrid, Charts on it. My requirement is, that the user should be able to position those elements according to his choice, like we drop text box, label in winform design view. I know that there is a Canvas class in WPF, but I want to achieve the same with Winforms.

我可以使用 Winform 中的WPF Canvas 吗?或者还有其他解决方案?

Can I use the WPF Canvas in Winform? Or is there any other solution?

推荐答案

您可以在Windows窗体应用程序中使用WPF Canvas。只需将画布放在 ElementHost控件 a>。

You can use a WPF Canvas in a Windows Forms application. Just place the Canvas inside of an ElementHost control.

这篇关于在Windows窗体.net应用程序中使用Canvas的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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