class
SplitContainer
public class SplitContainer : Panel A control that has two panes with a splitter in between. You can drag the splitter to change the size of the two panels.
Constructors
SplitContainer() Properties
| Name | Type | Description |
|---|---|---|
Left | Panel | The left, or top panel. Has class "split-left". |
Right | Panel | The left, or bottom panel. Has class "split-right". |
Splitter | Panel | The splitter control |
IsDragging | Boolean | Returns true if splitter is being dragged |
Vertical | Boolean | Should this be laid out vertically? If you set this to vertical you should mentally change Left to Top and Right to Bottom. |
FractionCookie | String | We can save the position of this splitter in a cookie. To do that set this (or "cookie" in a template). We'll automatically save and restore from the cookie. |
Methods
virtual Void UpdateSplitFraction(Single f) Sets the split fraction to this value. Will automatically adjust the value according to MinimumFraction parameters, and will save the new value to cookie.
virtual Void OnTemplateSlot(INode element, String slotName, Panel panel) You can create child panels in the template by setting attributes on them, like slot="left" to make that panel appear in the left panel.
virtual Void SetProperty(String name, String value) Fields
| Name | Type | Description |
|---|---|---|
MinimumFractionLeft | Single | The smallest the left section can be as a fraction (0-1). Also controls the largest the right section can be. |
MinimumFractionRight | Single | The smallest the right section can be as a fraction (0-1). Also controls the largest the left section can be. |