Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
25
XamcarouselPanel objects fading
posted

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>

Parents
  • 25
    posted

    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....

Reply Children
No Data