Version

ItemSize Property

Returns/sets the size of the items in the Carousel. The default is 150x100 (WxH).
Syntax
'Declaration
 
Public Property ItemSize As Size
public Size ItemSize {get; set;}
Remarks

Note: The size specified by this property is applied to all items in the Carousel - you cannot specify different sizes for each item. However you can affect the rendering size of individual items implicitly by applying scaling effects to the items using the ScalingEffectStops, ScalingEffectStopDirection and UseScaling properties.

Note: The AutoScaleItemContentsToFit property determines whether the contents of each item is scaled to fit within the bounds of the item as determined by this property.

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