ScrollViewer.BringIntoViewOnFocusChange Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that determines whether the ScrollViewer uses a bring-into-view scroll behavior when an item in the view gets focus.
public:
property bool BringIntoViewOnFocusChange { bool get(); void set(bool value); };
bool BringIntoViewOnFocusChange();
void BringIntoViewOnFocusChange(bool value);
public bool BringIntoViewOnFocusChange { get; set; }
var boolean = scrollViewer.bringIntoViewOnFocusChange;
scrollViewer.bringIntoViewOnFocusChange = boolean;
Public Property BringIntoViewOnFocusChange As Boolean
<ScrollViewer BringIntoViewOnFocusChange="bool" />
-or-
<object ScrollViewer.BringIntoViewOnFocusChange="bool"/>
Property Value
bool
true to use a behavior that brings focused items into view. false to use a behavior that focused items do not automatically scroll into view. The default is true.
Remarks
For XAML usage, BringIntoViewOnFocusChange can either be an attribute on an explicit ScrollViewer element, or a ScrollViewer.BringIntoViewOnFocusChange attached property usage on an element that is a child of a control that supports scrollview implicitly in its template.