Method EnsureVisibleLocation
| Improve this Doc View SourceEnsureVisibleLocation(Size, Rect)
Gets the adjusted location to ensure the window is visible in its container.
Declaration
protected virtual Point EnsureVisibleLocation(Size containerSize, Rect windowBounds)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Windows.Size | containerSize | The size of its container. |
| System.Windows.Rect | windowBounds | The window bounds. |
Returns
| Type | Description |
|---|---|
| System.Windows.Point | The adjusted location. |