This is a migrated thread and some comments may be shown as answers.

items flickering

3 Answers 71 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
ofir
Top achievements
Rank 1
ofir asked on 26 Jul 2010, 12:55 PM
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?

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 26 Jul 2010, 01:09 PM
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
0
ofir
Top achievements
Rank 1
answered on 26 Jul 2010, 01:28 PM
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.
0
Miroslav Nedyalkov
Telerik team
answered on 29 Jul 2010, 08:37 AM
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
Tags
CoverFlow
Asked by
ofir
Top achievements
Rank 1
Answers by
Valeri Hristov
Telerik team
ofir
Top achievements
Rank 1
Miroslav Nedyalkov
Telerik team
Share this question
or