WinForm 滚动查看器
我在 WPF 中有一个使用 ScrollViewr 的应用程序,我想将其移植到 WinForms,WinForms 是否有等效的控件?
原因:
WPF 程序很慢,我似乎无法学习如何正确渲染程序(GameOfLife)。 代码:
<ScrollViewer Name="displayPlaceHolder" HorizontalScrollBarVisibility="Auto">
<Canvas Name="display" MouseMove="display_MouseMove" MouseDown="display_MouseDown" Cursor="Cross" KeyDown="global_KeyDown" Focusable="True" />
</ScrollViewer>
I have an application in WPF that uses ScrollViewr and I want to port it to WinForms, is there an equivalent control for WinForms?
Reason:
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>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试使用启用了 AutoScroll 属性的面板。
You could try to use Panel with AutoScroll property enabled.