WinForm ScrollViewer

时光毁灭记忆、已成空白 提交于 2019-12-10 14:44:07

问题


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>

回答1:


You could try to use Panel with AutoScroll property enabled.



来源:https://stackoverflow.com/questions/6570871/winform-scrollviewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!