---
id: "P:cAlgo.API.Window.Child"
kind: "property"
type: "T:cAlgo.API.Window"
url: "https://help.ctrader.com/ctrader-algo/references/Controls/Windows/Window/Child/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# Window.Child

Member of [Window](https://help.ctrader.com/ctrader-algo/references/Controls/Windows/Window/index.md).

## Child

Get / Set the main content control of window

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.
- Cloud: Never shown: Show, Hide and Close send nothing; IsVisible stays false and window events never fire.

C#:

```csharp
public ControlBase Child {get; set;}
```

Python:

```python
window.Child: ControlBase
```

### Returns

`ControlBase` — 

### Examples

C#:

```csharp
var panel = new StackPanel { Margin = 10 };
panel.AddChild(new Button { Text = "Buy" });
panel.AddChild(new Button { Text = "Sell" });
var window = new Window { Title = "Orders", Child = panel };
window.Show();
```

Python:

```python
panel = StackPanel()
for text in ["Buy", "Sell"]:
    button = Button()
    button.Text = text
    panel.AddChild(button)
window = Window()
window.Title = "Orders"
window.Child = panel
window.Show()
```

