Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IScrollInfo.MakeVisible Method (Visual, Rect)


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

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

Rect MakeVisible(
	Visual visual,
	Rect rectangle


Type: System.Windows.Media.Visual

A Visual that becomes visible.

Type: System.Windows.Rect

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

Return Value

Type: System.Windows.Rect

A Rect that is visible.

In most cases, the returned rectangle 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
© 2017 Microsoft