Udostępnij za pośrednictwem


ScrollContentPresenter.MakeVisible(UIElement, Rect) Method

Definition

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

public:
 virtual Rect MakeVisible(UIElement ^ visual, Rect rectangle) = MakeVisible;
Rect MakeVisible(UIElement const& visual, Rect const& rectangle);
public Rect MakeVisible(UIElement visual, Rect rectangle);
function makeVisible(visual, rectangle)
Public Function MakeVisible (visual As UIElement, rectangle As Rect) As Rect

Parameters

visual
UIElement

A UIElement that becomes visible.

rectangle
Rect

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

Returns

A Rect that represents the visible region after scrolling happens.

Applies to