WinForm 滚动查看器 [英] WinForm ScrollViewer
本文介绍了WinForm 滚动查看器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在 WPF 中有一个使用 ScrollViewr 的应用程序,我想将它移植到 WinForms,是否有 WinForms 的等效控件?
I have an application in WPF that uses ScrollViewr and I want to port it to WinForms, is there an equivalent control for WinForms?
原因:
WPF 程序很慢,我似乎无法学习如何正确渲染程序 (GameOfLife).代码:
WPF program is slow and I can't seem to learn how to render the program properly (GameOfLife). Code:
<ScrollViewer Name="displayPlaceHolder" HorizontalScrollBarVisibility="Auto">
<Canvas Name="display" MouseMove="display_MouseMove" MouseDown="display_MouseDown" Cursor="Cross" KeyDown="global_KeyDown" Focusable="True" />
</ScrollViewer>
推荐答案
您可以尝试将 Panel 与 AutoScroll 属性已启用.
You could try to use Panel with AutoScroll property enabled.
这篇关于WinForm 滚动查看器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文