Version

ViewSettings Property (CarouselView)

Returns/sets the Infragistics.Windows.Controls.CarouselViewSettings object for this CarouselView.
Syntax
'Declaration
 
Public Property ViewSettings As CarouselViewSettings
public CarouselViewSettings ViewSettings {get; set;}
Remarks

Infragistics.Windows.Controls.CarouselViewSettings exposes a number of properties that let you control all aspects of layout and visual effects supported by the CarouselView. This is the same object that is returned from the Infragistics.Windows.Controls.XamCarouselPanel.ViewSettings and Infragistics.Windows.Controls.XamCarouselListBox.ViewSettings properties. Refer to Infragistics.Windows.Controls.CarouselViewSettings object for detailed information on these properties.

Example
The following example demonstrates how to create a CarouselView for the View property of the XamDataPresenter and initialize its ViewSettings.
<igDP:XamDataPresenter x:Name="XamDataPresenter1" BindToSampleData="True">
    
<igDP:XamDataPresenter.Resources>
        
<Path Visibility="Hidden" 
                
Fill="{x:Null}" 
                
Stretch="Fill" 
                
Stroke="#FF000000" 
                
x:Key="ovalPath" 
                
Data="M230,239 C230,239 254.00029,48.999465 420.00029,47.999465 586.00029,46.999465 629.00026,157.00004 618.00026,276.00004 607.00026,395.00004 538.91118,531.32446 425.00013,523.00028 164.99995,504.00048 189.99998,154.99988 189.99998,154.99988" 
                
Opacity="0.5" 
                
Margin="0,0,0,0"/>
    
</igDP:XamDataPresenter.Resources>

    
<igDP:XamDataPresenter.View>
        
<igDP:CarouselView>
            
<igDP:CarouselView.ViewSettings>
                
<igWindows:CarouselViewSettings IsListContinuous="True" 
                        
ItemPath="{Binding ElementName=ovalPath, Mode=OneWay}" 
                        
ItemPathAutoPad="False" 
                        
ItemPathPadding="251,50,260,170" 
                        
ItemSize="200,200" 
                        
ItemPathHorizontalAlignment="Stretch" 
                        
ItemPathVerticalAlignment="Stretch" 
                        
ItemsPerPage="6" 
                        
UseOpacity="True" 
                        
UseZOrder="True" >

                    
<igWindows:CarouselViewSettings.ScalingEffectStops>
                        
<igWindows:ScalingEffectStopCollection>
                            
<igWindows:ScalingEffectStop Value="0.3"/>
                            
<igWindows:ScalingEffectStop Offset="0.35" Value="0.7"/>
                            
<igWindows:ScalingEffectStop Offset="0.44" Value="1.5"/>
                            
<igWindows:ScalingEffectStop Offset="0.6" Value="0.4"/>
                            
<igWindows:ScalingEffectStop Offset="0.8" Value="0.3"/>
                            
<igWindows:ScalingEffectStop Offset="1"/>
                        
</igWindows:ScalingEffectStopCollection>
                    
</igWindows:CarouselViewSettings.ScalingEffectStops>

                    
<igWindows:CarouselViewSettings.OpacityEffectStops>
                        
<igWindows:OpacityEffectStopCollection>
                            
<igWindows:OpacityEffectStop/>
                            
<igWindows:OpacityEffectStop Offset="0.35" Value="0.5"/>
                            
<igWindows:OpacityEffectStop Offset="0.44" Value="1"/>
                            
<igWindows:OpacityEffectStop Offset="0.6" Value="0.5"/>
                            
<igWindows:OpacityEffectStop Offset="0.8" Value="0.2"/>
                            
<igWindows:OpacityEffectStop Offset="1"/>
                        
</igWindows:OpacityEffectStopCollection>
                    
</igWindows:CarouselViewSettings.OpacityEffectStops>

                    
<igWindows:CarouselViewSettings.ZOrderEffectStops>
                        
<igWindows:ZOrderEffectStopCollection>
                            
<igWindows:ZOrderEffectStop/>
                            
<igWindows:ZOrderEffectStop Offset="0.4" Value="1"/>
                            
<igWindows:ZOrderEffectStop Offset="1"/>
                        
</igWindows:ZOrderEffectStopCollection>
                    
</igWindows:CarouselViewSettings.ZOrderEffectStops>

                
</igWindows:CarouselViewSettings>

            
</igDP:CarouselView.ViewSettings>
        
</igDP:CarouselView>
    
</igDP:XamDataPresenter.View>

</igDP:XamDataPresenter>
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