---
id: "P:cAlgo.API.WindowLocationChangedEventArgs.Window"
kind: "property"
type: "T:cAlgo.API.WindowLocationChangedEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/WindowLocationChangedEventArgs/Window/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# WindowLocationChangedEventArgs.Window

Member of [WindowLocationChangedEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/WindowLocationChangedEventArgs/index.md).

## Window

The window which it is location changed

Environments: Desktop supported · CLI not supported · Cloud not supported.

- CLI: Never raised in the CLI: the events that pass it never fire there (Window.LocationChanged).
- Cloud: Never raised in the cloud: the events that pass it never fire there (Window.LocationChanged).

C#:

```csharp
public Window Window {get;}
```

Python:

```python
windowLocationChangedEventArgs.Window: Window
```

### Returns

`Window` — 

### Examples

C#:

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

private void OnWindowLocationChanged(WindowLocationChangedEventArgs args)
{
    if (args.Window.Left < 0)
        args.Window.Left = 0;
}
```

Python:

```python
def on_start(self):
    window = Window()
    window.Title = "Trade Panel"
    window.Width = 300
    window.Height = 200
    window.LocationChanged += self.on_window_location_changed
    window.Show()

def on_window_location_changed(self, args):
    if args.Window.Left < 0:
        args.Window.Left = 0
```

