Show / Hide Table of Contents

Method EnsureVisibleLocation

| Improve this Doc View Source

EnsureVisibleLocation(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.

  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest