Intersoft.Client.UI.Controls Namespace > UXScrollViewer Class : HorizontalScrollBarVisibility Property |
<CategoryAttribute("Common Properties")> Public Property HorizontalScrollBarVisibility As ScrollBarVisibility
Dim instance As UXScrollViewer Dim value As ScrollBarVisibility instance.HorizontalScrollBarVisibility = value value = instance.HorizontalScrollBarVisibility
[CategoryAttribute("Common Properties")] public ScrollBarVisibility HorizontalScrollBarVisibility {get; set;}
[CategoryAttribute("Common Properties")] public: property ScrollBarVisibility HorizontalScrollBarVisibility { ScrollBarVisibility get(); void set ( ScrollBarVisibility value); }
By default, the vertical scrollbar is always displayed regardless of the content size. In this case, the vertical scroll bar is shown disabled if the content fits the size. You can customize this behavior to automatically display the vertical scollbar only when necessary by setting the VerticalScrollBarVisibility to Auto. The same is true for HorizontalScrollBarVisibility as well.
The scroll bar visibility for both vertical and horizontal direction provides the following options:
The following example shows how to show both scroll bars of the UXScrollViewer only when its content exceeds the desired size.
XAML |
Copy Code
|
---|---|
<Intersoft:UXScrollViewer Height="150" Width="250" BorderThickness="1" BorderBrush="#FF7E7E7E" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto"> <Grid Height="200" Background="#FFD0EFFF"> <TextBlock Text="Put very long content here" VerticalAlignment="Center" HorizontalAlignment="Center"/> </Grid> </Intersoft:UXScrollViewer> |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2