wpf-devexpress-dot-xpf-dot-core-dot-scrollcontrol-7a293395.md
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
public bool AllowBringChildIntoView { get; set; }
Public Property AllowBringChildIntoView As Boolean
| Type | Description |
|---|---|
| Boolean |
true, if an element, hosted within the ScrollControl descendant, should be automatically scrolled upon interaction.; otherwise, false.
|
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
</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