Skip to content

Window.Show

method · Window · cAlgo.API

DesktopCLICloud

Shows the window

Environment behaviour

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

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

Definition

public void Show()
window.Show() -> None

Examples

var window = new Window { Title = "Trade summary", Width = 300, Height = 150 };
window.Child = new TextBlock { Text = "Open positions: " + Positions.Count, Margin = 10 };
window.Show();
window = Window()
window.Title = "Trade summary"
window.Width = 300
window.Height = 150
textBlock = TextBlock()
textBlock.Text = f"Open positions: {api.Positions.Count}"
window.Child = textBlock
window.Show()