ScrollContentPresenter.MakeVisible Method (Visual, Rect)

 

Forces content to scroll until the coordinate space of a Visual object is visible.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public Rect MakeVisible(
	Visual visual,
	Rect rectangle
)

Parameters

visual
Type: System.Windows.Media.Visual

The Visual that becomes visible.

rectangle
Type: System.Windows.Rect

The bounding rectangle that identifies the coordinate space to make visible.

Return Value

Type: System.Windows.Rect

A Rect that represents the visible region.

In most cases, the returned Rect is a transformed version of the input rectangle. In some cases, such as when the input rectangle cannot fit entirely within the viewport, the return value may be smaller.

.NET Framework
Available since 3.0
Return to top
Show: