我是使用Wpf到vb.net的新手,请遇到一些问题,我希望有一些解决方案 [英] I`m new To vb.net with Wpf, i have got some issues please , i`m expecting some solutions

查看:70
本文介绍了我是使用Wpf到vb.net的新手,请遇到一些问题,我希望有一些解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Wpf中的WindowsFormHost遇到了一些问题

1)画布页面-具有scrollviewer,通过向下滚动
我可以查看整个页面
2)我想要一些图形控件,这是Windows应用程序控件,我无法将其直接添加到wpf画布页面中,因此我使用windowsFormHost对象将其分配给canvas

3)毕竟,我正在取得结果,没有任何问题

4)scrollivewer的问题,当我向下或向上时,windows图形控件将在画布外部查看,它将超出边框

请让我知道如何限制在画布页面中显示Windows控件.

i have some issues with , windowsFormHost in Wpf

1) canvas page - have scrollviewer where i can view total page by scrolling down

2) i want some graph control, which is windows application controls , which i cant directly add it into wpf canvas page, so i used windowsFormHost object to assign to canvas

3) after all , i`m getting result , without any issues

4) problem with scrollivewer, when i down or up, the windows graph controls , will be viewed outside the canvas , it`ll excess the border

please let me know how can i restrict to display windows control within canvas page

推荐答案

为什么不让WinForm控件负责滚动本身,以及只是将其放在WPF表单中?
Why don''t you let the WinForm control be in charge of scrolling itself, and just put it in the WPF form?


感谢您的回复,

我需要开发编辑器窗口,就像Office word一样-
我可以在其中放置控件的地方,例如文本框,图形等等

但是项目工作正在进行,WPF应用程序

所以->我如何达到上述要求-

我实际上使用GigaSoft ProEssential的Pego图表绘制图形
这是Windows应用程序的控件,

当我添加Windows Form HOst Element,graph,host元素时,它是从scrollviewer中出来的,在其中我添加了wpf来控制它适合Canvas页面内

请-提供解决方案如何达到要求,或者如何在canvaspage内而不是从scrollviewer外部设置Windowsformhost

谢谢谢谢谢谢----
Thanks for your Reply ,

i need to develop editor window, same as like Office word -
where i can place controls, like text box , graphs so and so

but project work is on, WPF Application

so - > how can i achieve Above requirement -

graphs actually i`m using pego charts from GigaSoft ProEssential
this , control is for windows Application ,

when i add with , Windows Form HOst Element , the graph , the host element is coming out of scrollviewer, where i add , wpf controls it fits inside the Canvas Page ,

Please - Give Solution How can I achieve requirement or , how to set windowsformhost within canvaspage , not from outside of the scrollviewer

thanks thanks, thanks ----


这篇关于我是使用Wpf到vb.net的新手,请遇到一些问题,我希望有一些解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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