BringIntoViewOptions BringIntoViewOptions BringIntoViewOptions Class

Definition

Represents the options that can be applied when an element is brought into view.

public : sealed class BringIntoViewOptions : IBringIntoViewOptions
public sealed class BringIntoViewOptions : IBringIntoViewOptions
Public NotInheritable Class BringIntoViewOptions Implements IBringIntoViewOptions
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Remarks

For more info, see the UIElement.StartBringIntoView method.

Constructors

BringIntoViewOptions() BringIntoViewOptions() BringIntoViewOptions()

Initializes a new instance of the BringIntoViewOptions class.

public : BringIntoViewOptions()
public BringIntoViewOptions()
Public Sub New()

Properties

AnimationDesired AnimationDesired AnimationDesired

Gets or sets a value that indicates whether to use animation when the element is brought into view.

public : Platform::Boolean AnimationDesired { get; set; }
public bool AnimationDesired { get; set; }
Public ReadWrite Property AnimationDesired As bool
Value
Platform::Boolean bool bool

true to use animation; otherwise, false. The default is true.

TargetRect TargetRect TargetRect

Gets or sets the area of an element to bring into view.

public : IReference<Rect> TargetRect { get; set; }
public Nullable<Rect> TargetRect { get; set; }
Public ReadWrite Property TargetRect As Nullable<Rect>
Value
IReference<Rect> Nullable<Rect> Nullable<Rect>

A rectangle that defines the area of an element to bring into view.

Remarks

Set the TargetRect to specify a particular part of an element to be brought into view. For example, if you need to scroll a large image into view, you could define a specific part of the image that should be made visible. If the TargetRect is null, the element's bounding rect is used as the target.