WinForm ScrollViewer

2019-06-24 06:12发布

问题:

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.