Skip to content

DropZone.Child

property · DropZone · cAlgo.API Since 5.1

DesktopCLICloud

Gets or sets the drop zone child object.

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 ControlBase Child {get; set;}
dropZone.Child: ControlBase

Returns ControlBase

Examples

var border = new Border { BorderColor = Color.Gray, BorderThickness = 1, Width = 250, Height = 80 };
border.Child = new TextBlock { Text = "Drop files here", HorizontalAlignment = HorizontalAlignment.Center, VerticalAlignment = VerticalAlignment.Center };
var dropZone = new DropZone { Child = border };
Chart.AddControl(dropZone);
border = Border()
border.BorderColor = Color.Gray
border.BorderThickness = Thickness(1)
border.Width = 250
border.Height = 80
text = TextBlock()
text.Text = "Drop files here"
border.Child = text
dropZone = DropZone()
dropZone.Child = border
api.Chart.AddControl(dropZone)