DockPanel constructor
constructor · DockPanel · cAlgo.API
DesktopCLICloud
Initializes a new instance of the DockPanel class.
Environment behaviour
CLI — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Cloud — not supported. Accepted without error but never displayed, so control events such as Click are never raised.
Definition
public DockPanel()
DockPanel()
Examples
var dockPanel = new DockPanel { Width = 300, Height = 100, BackgroundColor = Color.DarkSlateGray };
dockPanel.AddChild(new TextBlock { Text = "Order panel", Dock = Dock.Top, Margin = 5 });
dockPanel.AddChild(new Button { Text = "Submit", Dock = Dock.Right, Margin = 5 });
dockPanel.AddChild(new TextBox { Text = "0.01", Margin = 5 });
Chart.AddControl(dockPanel);
dockPanel = DockPanel()
dockPanel.Width = 300
dockPanel.Height = 100
dockPanel.BackgroundColor = Color.DarkSlateGray
header = TextBlock()
header.Text = "Order panel"
header.Dock = Dock.Top
submit = Button()
submit.Text = "Submit"
submit.Dock = Dock.Right
volume = TextBox()
volume.Text = "0.01"
dockPanel.AddChild(header)
dockPanel.AddChild(submit)
dockPanel.AddChild(volume)
api.Chart.AddControl(dockPanel)