items flickering

4 posts, 0 answers
  1. ofir
    ofir avatar
    25 posts
    Member since:
    Jul 2010

    Posted 26 Jul 2010 Link to this post

    when i use CoverFlow with databinding, the items are flickering the first time they appear on screen. it does not happen all the time, but most of the time. (when i use CoverFlow without databinding everything works fine).

    here is the code
    <riaControls:DomainDataSource x:Name="domainDataSource" AutoLoad="True" QueryName="GetUsers"
                       LoadedData="DomainDataSourceLoadedData">
                   <riaControls:DomainDataSource.DomainContext>
                       <Services:RichrachDomainContext />
                   </riaControls:DomainDataSource.DomainContext>
               </riaControls:DomainDataSource>
               <telerik:RadCoverFlow x:Name="cvr" Grid.Row="1" ItemsSource="{Binding Data, ElementName=domainDataSource}"
                       VerticalAlignment="Center" ItemChangeDelay="0:0:2" FlowDirection="RightToLeft" Margin="10,0"
                       ItemScale="0.75" IsReflectionEnabled="False" DistanceBetweenItems="75" DistanceFromSelectedItem="25"
                       RotationY="45">
                   <telerik:RadCoverFlow.EasingFunction>
                       <CubicEase EasingMode="EaseInOut" />
                   </telerik:RadCoverFlow.EasingFunction>
                   <telerik:RadCoverFlow.ItemTemplate>
                       <DataTemplate>
                           <telerik:RadCoverFlowItem Height="160" MouseLeftButtonUp="RadCoverFlowItem_MouseLeftButtonUp">
                               <StackPanel Background="{StaticResource RichrachBrush}" Height="120"
                                       VerticalAlignment="Center">
                                 <TextBlock Text="{Binding UserName}" Height="20"></TextBlock>
                               </StackPanel>
                           </telerik:RadCoverFlowItem>
                       </DataTemplate>
                   </telerik:RadCoverFlow.ItemTemplate>
               </telerik:RadCoverFlow>

    any solution?

  2. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 26 Jul 2010 Link to this post

    Hello,

    I suppose the problem is caused by the presense of a RadCoverFlowItem in the ItemTemplate. Generally you should avoid putting items in the ItemTemplate.

    Best wishes,
    Valeri Hristov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
  4. ofir
    ofir avatar
    25 posts
    Member since:
    Jul 2010

    Posted 26 Jul 2010 Link to this post

    thanks for the reply, but it didnot solve the problem.
    i replaced the RadCoverFlowItem with Border, like this:
    <riaControls:DomainDataSource x:Name="domainDataSource"  AutoLoad="True" QueryName="GetUsers"  LoadedData="DomainDataSourceLoadedData">
                    <riaControls:DomainDataSource.DomainContext>
                        <Services:RichrachDomainContext />
                    </riaControls:DomainDataSource.DomainContext>
                </riaControls:DomainDataSource>
                <telerik:RadCoverFlow x:Name="cvr"  Grid.Row="1"   ItemsSource="{Binding Data, ElementName=domainDataSource}"
                        VerticalAlignment="Center" ItemChangeDelay="0:0:2"   FlowDirection="RightToLeft" Margin="10,0" ItemScale="0.75" IsReflectionEnabled="False"  DistanceBetweenItems="75" DistanceFromSelectedItem="25" RotationY="45">
                    <telerik:RadCoverFlow.EasingFunction>
                        <CubicEase EasingMode="EaseInOut" />
                    </telerik:RadCoverFlow.EasingFunction>
                    <telerik:RadCoverFlow.ItemTemplate>
                        <DataTemplate>
                            <Border Height="160"  MouseLeftButtonUp="RadCoverFlowItem_MouseLeftButtonUp">
                                <StackPanel Background="{StaticResource RichrachBrush}" Height="120" VerticalAlignment="Center" >
                                <Border Height="100" Width="100" >
                                    <Border.Background>
                                        <ImageBrush
                                                ImageSource="{Binding Path=DbImages,Converter={StaticResource ImagesConverter}}"
                                                Stretch="UniformToFill" />
                                    </Border.Background>
                                </Border>
                                <TextBlock Text="{Binding UserName}" Height="20" ></TextBlock>
                            </StackPanel>
                            </Border>
                        </DataTemplate>
                    </telerik:RadCoverFlow.ItemTemplate>
                  </telerik:RadCoverFlow>

    the items are still flickering.
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 29 Jul 2010 Link to this post

    Hi Ofir,

     Could you please open a support ticket and send us a sample project that reproduces the problem? This would help us investigate what causes the problem and help you resolve it.

    Best wishes,
    Miroslav Nedyalkov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top