Skip to main content
A newer version of this page is available. .

WinExplorerViewOptionsBehavior.AutoScrollItemOnMouseClick Property

Gets or sets whether or not the WinExplorer View should scroll up or down when an end-user clicks a view item.

Namespace: DevExpress.XtraGrid.WinExplorer

Assembly: DevExpress.XtraGrid.v19.2.dll

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public bool AutoScrollItemOnMouseClick { get; set; }

Property Value

Type Default Description
Boolean **true**

true if the WinExplorer View should scroll up or down when an end-user clicks a view item; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to AutoScrollItemOnMouseClick
WinExplorerView
.OptionsBehavior.AutoScrollItemOnMouseClick

Remarks

When an end-user clicks a WinExplorer View item that is partly visible, the View automatically scrolls its content up or down to display this item’s opposite edge (the one which is currently hidden). Use the AutoScrollItemOnMouseClick property to disable this behavior. The animation below illustrates an example.

WinExplorerView - Auto Scroll Items

private void barToggleSwitchItem1_CheckedChanged(object sender, DevExpress.XtraBars.ItemClickEventArgs e) {
    winExplorerView1.OptionsBehavior.AutoScrollItemOnMouseClick = !winExplorerView1.OptionsBehavior.AutoScrollItemOnMouseClick;
    barToggleSwitchItem1.Caption = winExplorerView1.OptionsBehavior.AutoScrollItemOnMouseClick ? "Auto Scroll: On" : "Auto Scroll: Off";
}
See Also