Skip to content

ApplicationDraggable.Child

property · ApplicationDraggable · cAlgo.API Since 5.2

DesktopCLICloud

Get / set the content control inside the draggable.

Environment behaviour

CLI — not supported. Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.

Cloud — not supported. Never displayed: starts at X=0, Y=0; position changes are not applied and LocationChanged never fires.

Definition

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

Returns ControlBase

Examples

var draggable = Application.Draggables.Add();
var button = new Button { Text = "Buy " + SymbolName };
button.Click += args => ExecuteMarketOrder(TradeType.Buy, SymbolName, Symbol.VolumeInUnitsMin);
draggable.Child = button;
draggable = api.Application.Draggables.Add()
button = Button()
button.Text = "Buy " + api.SymbolName
button.Click += lambda args: api.ExecuteMarketOrder(TradeType.Buy, api.SymbolName, api.Symbol.VolumeInUnitsMin)
draggable.Child = button