Version

ItemPathAutoPad Property

Returns/sets whether padding should be automatically added within the XamCarouselPanel to ensure that items arranged along the path do not extend beyond the bounds of the control. The default is True.
Syntax
'Declaration
 
Public Property ItemPathAutoPad As Boolean
public bool ItemPathAutoPad {get; set;}
Remarks

Note: If this property is set to true and padding is automatically added, the added padding is in addition to any padding specified in the ItemPathPadding property.

Example
The following example adjusts the ItemPathPadding to increase the default item padding. To use the ItemPathPadding as the only source for the padding, you can set the ItemPathAutoPad to false.
<igWindows:XamCarouselPanel>
    
<igWindows:XamCarouselPanel.ViewSettings>

        
<!-- Note: If ItemPathAutoPad is true, ItemPathPadding adds to the automatic
        padding. Otherwise this specifies the actually padding used 
-->
        
<igWindows:CarouselViewSettings 
            
ItemPathPadding="20"
            
ItemPathAutoPad="True"
            
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, 100, 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 10,10 C 10,100 100,-100 100,10" />
</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