Version

ItemHorizontalScrollBarVisibility Property (CarouselViewSettings)

Returns/sets the visibility of the horizontal System.Windows.Controls.Primitives.ScrollBar that is displayed within each item when the width of the Item's contents exceeds the Item's width as specified by the ItemSize property. The default is System.Windows.Controls.ScrollBarVisibility.Auto.
Syntax
'Declaration
 
Public Property ItemHorizontalScrollBarVisibility As ScrollBarVisibility
public ScrollBarVisibility ItemHorizontalScrollBarVisibility {get; set;}
Remarks

Note that this property is ignored if AutoScaleItemContentsToFit is set to true.

Example
In the following example, the ItemSize property has been set to a custom value. Items that are largerthan the specified ItemSize will have scrollbars displayed by default unless the ItemHorizontalScrollBarVisibility and ItemVerticalScrollBarVisibility are set to a value other than Visible, which is the default value for these properties.
<igWindows:XamCarouselPanel>
    
<igWindows:XamCarouselPanel.ViewSettings>

        
<igWindows:CarouselViewSettings 
            
ItemSize="100,50" 
            
ItemHorizontalScrollBarVisibility="Hidden" 
            
ItemVerticalScrollBarVisibility="Hidden" 
            
ItemPathRenderBrush="#77000000"/>

    
</igWindows:XamCarouselPanel.ViewSettings>

    
<Ellipse Width="50" Height="50" Stroke="Black" Fill="Red" />
    
<Ellipse Width="100" Height="50" Stroke="Black" Fill="Green" />
    
<Polygon Points="0, 25, 25, 0, 75, 0, 99, 25, 75, 50, 25, 50" Stroke="Black" Fill="Yellow" />
    
<Rectangle Width="100" Height="50" Stroke="Black" Fill="Purple" />
    
<Polyline Points="0, 25, 25, 0, 50, 25, 25, 50, 0, 25" Stroke="SlateGray" StrokeThickness="2" Fill="Blue"/>
    
<Path Stroke="Black" Fill="Gray" Data="M 0,0 C 0,99 99,-99 99,0" />
</igWindows:XamCarouselPanel>
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