Skip to main content
All docs
V26.1
  • TreeViewControl.HorizontalScrollbarVisibility Property

    Gets or sets whether the horizontal scrollbar is visible. This is a dependency property.

    Namespace: DevExpress.Xpf.Grid

    Assembly: DevExpress.Xpf.Grid.v26.1.dll

    Declaration

    public ScrollBarVisibility HorizontalScrollbarVisibility { get; set; }

    Property Value

    Type Default Description
    ScrollBarVisibility Hidden

    A ScrollBarVisibility enumeration value that specifies the active horizontal scrollbar visibility mode.

    Remarks

    Use the VerticalScrollbarVisibility property to hide or display the vertical scrollbar.

    Example: Set Horizontal Scrollbar Visibility

    The following example sets horizontal scrollbars visibility to Auto:

    <dx:ThemedWindow x:Class="TreeViewControlApp.MainWindow"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
                     xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
                     Title="TreeViewControl Demo" Height="450" Width="600">
            <dxg:TreeViewControl x:Name="tree"
                                 ChildNodesPath="Employees"
                                 TreeViewFieldName="Name"
                                 HorizontalScrollbarVisibility="Auto"
                                 AllowEditing="False">
            </dxg:TreeViewControl>
    </dx:ThemedWindow>
    
    See Also