Skip to content

CustomFrame.Child

property · CustomFrame · cAlgo.API

DesktopCLICloud

Get / set child control of frame.

Environment behaviour

CLI — not supported. Available to plugins only, and plugins cannot run in the CLI.

Cloud — not supported. Available to plugins only, and plugins cannot run in the cloud.

Definition

ControlBase Child {get; set;}
customFrame.Child: ControlBase

Returns ControlBase

Examples

var customFrame = ChartManager.AddCustomFrame("Account");
var panel = new StackPanel { Margin = 10 };
panel.AddChild(new TextBlock { Text = $"Balance: {Account.Balance}" });
panel.AddChild(new TextBlock { Text = $"Equity: {Account.Equity}" });
customFrame.Child = panel;
customFrame = api.ChartManager.AddCustomFrame("Account")
panel = StackPanel()
panel.Margin = Thickness(10)
balanceText = TextBlock()
balanceText.Text = f"Balance: {api.Account.Balance}"
equityText = TextBlock()
equityText.Text = f"Equity: {api.Account.Equity}"
panel.AddChild(balanceText)
panel.AddChild(equityText)
customFrame.Child = panel