WindowDeactivatedEventArgs
class cAlgo.API
DesktopCLICloud
Provides data for WindowDeactivated event handlers
Environment behaviour
CLI — not supported. Never raised in the CLI: the events that pass it never fire there (Window.Deactivated).
Cloud — not supported. Never raised in the cloud: the events that pass it never fire there (Window.Deactivated).
Definition
public class WindowDeactivatedEventArgs
Namespace: cAlgo.API · Group: EventArgs
Examples
protected override void OnStart()
{
var window = new Window { Title = "Trade Panel", Width = 300, Height = 200, Child = new TextBlock { Text = "Hello" } };
window.Deactivated += OnWindowDeactivated;
window.Show();
}
private void OnWindowDeactivated(WindowDeactivatedEventArgs args)
{
Print("Window {0} deactivated", args.Window.Title);
}
def on_start(self):
text_block = TextBlock()
text_block.Text = "Hello"
window = Window()
window.Title = "Trade Panel"
window.Width = 300
window.Height = 200
window.Child = text_block
window.Deactivated += self.on_window_deactivated
window.Show()
def on_window_deactivated(self, args):
api.Print(f"Window {args.Window.Title} deactivated")
Properties
| Name | Description |
|---|---|
WindowDesktopCLICloudWindow | The window that got deactivated |