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

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

问题描述

我想创建一个显示Datagrid的,它图表一个WinForm应用程序。我的要求是,用户应该能够根据自己的选择来定位这些元素,就像我们在WinForm的设计视图中拖放文本框,标签。我知道,有在WPF Canvas类的,但我想在winform achive一样的。

I want to create a Winform application which displays Datagrid, Charts on it. My requirement is, user should be able to positioned those element according to his choice, like we drop text box, label in winform design view. I knew that there is Canvas class in WPF but I wanted to achive same in Winform.

在这个任何指针?或者我们可以使用WPF画布在WinForm的?任何例子。

Any pointers on this? or Can we use WPF Canvas in Winform? any example.

谢谢, Omky

推荐答案

您可以在Windows中使用一个WPF画布窗体应用程序。只需在画布/内部的 ElementHost控件<的一>

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天全站免登陆