Hi, I tried using the carousel control using XamcarouselPanel and XamDataCarousel, it works fine with the xaml code below. what I'm tryng to achieve is:
1) Make the child control/ objects rotate inside the carousel panel continuously, every child control should appear to user for 2-3 seconds configurable.
2) make the corousel objects always visible when it's in motion, I want to remove the fading effect and make the control visible always, I had gone through the OpacityEffectStops property but not sure how do I achieve inside each control.
Any idea/ code sample code will be of great use.
<Window x:Class="SampleCarousel.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Height="300" Width="546" xmlns:my="clr-namespace:Infragistics.Windows.DataPresenter;assembly=Infragistics3.Wpf.DataPresenter.v7.2"> <Grid> <Grid.RowDefinitions> <RowDefinition Height="92*" /> <RowDefinition Height="170*" /> </Grid.RowDefinitions> <igWindows:XamCarouselPanel Grid.RowSpan="2" Margin="47,17,90,39" Name="xamCarouselPanel1" xmlns:igWindows="http://infragistics.com/Windows" FlowDirection="LeftToRight" Loaded="xamCarouselPanel1_Loaded"> <StackPanel Height="20" Width="61"> <TextBlock HorizontalAlignment="Center" MaxWidth="100" MaxHeight="100"> My Home </TextBlock> </StackPanel> <StackPanel Height="50" Width="61"> <Image Name="Home" Source="Images\house.jpg" Image.PreviewMouseLeftButtonDown="Home_PreviewMouseLeftButtonDown" ></Image> </StackPanel>
<my:XamDataCarousel x:Name="XamDataCarousel1" Theme="Office2k7Blue" BorderThickness="1" Grid.Row="2" Grid.RowSpan="2" GroupByAreaLocation="None"> <StackPanel Height="61" Width="61"> <TextBlock HorizontalAlignment="Center">Home</TextBlock> <Image x:Name="img1" ToolTip="img1" Width="51" Height="51" Source="Images\house.jpg" /> </StackPanel> </my:XamDataCarousel> </igWindows:XamCarouselPanel> </Grid></Window>
Okay, setting the XamCarousel view setting made most of them working, I am able to retain the controls without fading, adjust the size etc....
<igWindows:XamCarouselPanel.ViewSettings> <igWindows:CarouselViewSettings ReserveSpaceForReflections="False" IsListContinuous="True" ItemSize="300,200" AutoScaleItemContentsToFit="False" /> </igWindows:XamCarouselPanel.ViewSettings>
I am still trying the figure out the solution for 1st one, I am able to remove the navigator buttons but the controls does not scroll inside the panel, it becomes static. The documentation says "The CarouselPanelNavigator displays buttons that execute XamCarouselPanelCommands when clicked, in order to scroll items" it will be great is someone can provide the sample code, I would post if I can get them working....
Hello,
I have been looking into this and can suggest you look at this link from our online documentation that describes how to get the continuous scrolling: http://help.infragistics.com/NetAdvantage/WPF/2011.1/CLR4.0/?page=xamCarouselPanel_Making_the_xamCarouselPanels_Path_Continuous.html
Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.
Feel free to write me if you need further assistance.