Skip to content

WindowIsVisibleChangedEventArgs.Window

property · WindowIsVisibleChangedEventArgs · cAlgo.API

DesktopCLICloud

The window which it is IsVisible property got changed

Environment behaviour

CLI — not supported. Never raised in the CLI: the events that pass it never fire there (Window.IsVisibleChanged).

Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (Window.IsVisibleChanged).

Definition

public Window Window {get;}
windowIsVisibleChangedEventArgs.Window: Window

Returns Window

Examples

protected override void OnStart()
{
    var window = new Window { Title = "Trade Panel", Width = 300, Height = 200 };
    window.IsVisibleChanged += OnWindowIsVisibleChanged;
    window.Show();
}

private void OnWindowIsVisibleChanged(WindowIsVisibleChangedEventArgs args)
{
    Print("Window {0} is visible: {1}", args.Window.Title, args.Window.IsVisible);
}
def on_start(self):
    window = Window()
    window.Title = "Trade Panel"
    window.Width = 300
    window.Height = 200
    window.IsVisibleChanged += self.on_window_is_visible_changed
    window.Show()

def on_window_is_visible_changed(self, args):
    api.Print(f"Window {args.Window.Title} is visible: {args.Window.IsVisible}")