Window constructor
constructor · Window · cAlgo.API
DesktopCLICloud
Creates an empty window with default settings
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 Window()
Window()
Examples
var window = new Window { Title = "Trade panel", Width = 300, Height = 200 };
window.Child = new TextBlock { Text = SymbolName + " " + Symbol.Bid };
window.Show();
window = Window()
window.Title = "Trade panel"
window.Width = 300
window.Height = 200
textBlock = TextBlock()
textBlock.Text = f"{api.SymbolName} {api.Symbol.Bid}"
window.Child = textBlock
window.Show()