Back to Devexpress

ScrollControl.AllowBringChildIntoView Property

wpf-devexpress-dot-xpf-dot-core-dot-scrollcontrol-7a293395.md

latest2.9 KB
Original Source

ScrollControl.AllowBringChildIntoView Property

Gets or sets whether an element, hosted within the ScrollControl descendant, should be automatically scrolled upon interaction.

Namespace : DevExpress.Xpf.Core

Assembly : DevExpress.Xpf.Core.v25.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public bool AllowBringChildIntoView { get; set; }
vb
Public Property AllowBringChildIntoView As Boolean

Property Value

TypeDescription
Boolean

true, if an element, hosted within the ScrollControl descendant, should be automatically scrolled upon interaction.; otherwise, false.

|

Remarks

By default, a control derived from the ScrollControl class automatically scrolls its content area to display the top of the control (group of controls) with which an end-user interacts. This behavior is shown in the following animation.

To disable this behavior, set the AllowBringChildIntoView property to false.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AllowBringChildIntoView property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-data-grid-create-filter-ui/CS/WpfApplication27/MainWindow.xaml#L58

xml
</dxg:GridControl>
<dxlc:DataLayoutControl x:Name="myDataLayoutControl" CurrentItem="{Binding Path=FilteringViewModel, ElementName=filteringBehavior}" GroupBoxDisplayMode="Light" ItemSpace="10" AutoGenerateItems="False" AllowBringChildIntoView="False">
    <Button Width="150" Height="30" Content="Reset all filters" Command="{Binding FilteringViewModel.City.ResetAllCommand, ElementName=filteringBehavior}" />

See Also

ScrollControl Class

ScrollControl Members

DevExpress.Xpf.Core Namespace