Nevron Open Vision Documentation
Scroll Content Element

The scroll content element can be used to show large content in a smaller area. It automatically measures the content and configures and attaches scrollbars to it if necessary. All you have to do is to place the content in a scroll content element.

Properties

The scroll content element provides the following properties:

Code Example

The following is a simple example that creates 50 buttons in a stack panel and places the panel in a scroll content element:

Scroll Content Element Example
Copy Code
NStackPanel stack = new NStackPanel();
for (int i = 1; i <= 50; i++)
{
    stack.Add(new NButton("Button " + i.ToString()));
}
 
NScrollContent scrollContent = new NScrollContent();
scrollContent.Content = stack;

This code will produce the following result:

 

See Also
Send Feedback