ScrollViewer
Introduction
Code Example: Creating a ScrollViewer with Forms Children
var scrollViewer = new ScrollViewer();
scrollViewer.AddToRoot();
scrollViewer.X = 50;
scrollViewer.Y = 50;
scrollViewer.Width = 200;
scrollViewer.Height = 200;
scrollViewer.InnerPanel.StackSpacing = 2;
for (int i = 0; i < 30; i++)
{
var button = new Button();
scrollViewer.AddChild(button);
button.Text = "Button " + i;
button.Click += (_, _) =>
button.Text = DateTime.Now.ToString();
}
Scrolling a ScrollViewer
Code Example: Creating a ScrollViewer With Non-Forms Children

Code Example: Wrapping Children

Last updated
Was this helpful?

