StackController

Class (inherits from DesktopContainer)

Methods

AddView(view As ViewController, index As Integer = -1)

Adds a View (dynamically at the Runtime) to the StackView.

Parameters

Init(useAnimation As Boolean)

Set Views animation.

Parameters

RemoveView(index As Integer = -1)

Removes a View from the StackView.

Parameters

Properties

AutoSetup As Boolean (designtime-only)

Automatically adds the ViewControllers contained in the StackController (based on their z-Order in the Layout Editor). Otherwise, you must add the ViewControllers manually via Views.Add() in the Opening-Event.

Expanded As Boolean

Set or return the state of the StackView.

UseAnimation As Boolean

Animate all Views while collapsing/expanding.

Views() As ViewController

Collection of ViewControllers.

Sample Code

MyStackController1 Opening-Event:

Opening-Event
If Not Self.AutoSetup Then
  Views.Add(MyFontView1)
  Views.Add(MyAlignmentView1)
  Views.Add(MyMarginView1)
End If


Last updated