protected override void OnStartDemo(SampleViewport viewport)
{
//--------------------------------
{
//background element
var bgbox = new LayoutFarm.CustomWidgets.SimpleBox(800, 600);
bgbox.BackColor = Color.White;
bgbox.SetLocation(0, 0);
SetupBackgroundProperties(bgbox);
viewport.AddContent(bgbox);
}
//--------------------------------
//ninespace compartment
ninespaceBox = new NinespaceBox(800, 600);
ninespaceBox.ShowGrippers = true;
viewport.AddContent(ninespaceBox);
ninespaceBox.SetSize(800, 600);
//--------------------------------
//--------------------------------
//test add some content to the ninespace box
var sampleListView = CreateSampleListView();
ninespaceBox.LeftSpace.ContentLayoutKind = BoxContentLayoutKind.VerticalStack;
ninespaceBox.LeftSpace.AddChild(sampleListView);
}
void SetupBackgroundProperties(LayoutFarm.CustomWidgets.EaseBox backgroundBox)