Skip to content

Window.Topmost

property · Window · cAlgo.API

DesktopCLICloud

Get / Set the window topmost flag, if True then the window will appear on top of all other windows

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 bool Topmost {get; set;}
window.Topmost: bool

Returns bool

Examples

var window = new Window { Title = "Always on top", Width = 250, Height = 120, Topmost = true };
window.Child = new TextBlock { Text = SymbolName + " " + Symbol.Bid };
window.Show();
window = Window()
window.Title = "Always on top"
window.Width = 250
window.Height = 120
window.Topmost = True
window.Show()