Version

HorizontalScrollBarVisibility Property

Determines if a horizontal scrollbar is visible.
Syntax
'Declaration
 
Public Property HorizontalScrollBarVisibility As ScrollBarVisibility
public ScrollBarVisibility HorizontalScrollBarVisibility {get; set;}
Example
The following code creates a XamTextEditor and sets is HorizontalScrollBarVisibility to Visible. Note that it's also setting the TextWrapping to NoWrap. Horizontal scrollbar is typically only useful when text wrapping is disabled (which it is by default) since otherwise the text will wrap and horizontal scrollbar will be disabled. Also note that IsAlwaysInEditMode is set to True. This is important because otherwise when the editor doesn't have focus, it will exit edit mode. When not in edit mode, horizontal scrollbar will not be displayed until the user gives focus to the editor causing it to enter edit mode.

<igEditors:XamTextEditor x:Name="textEditor6" 
     
Width="150"
     
HorizontalScrollBarVisibility="Visible"
     
Value="This is along line of text requiring a horizontal scrollbar."
     
TextWrapping="NoWrap"
     
IsAlwaysInEditMode="True"
     
/>
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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

See Also