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

Space between Main picture and cover flows

1 Answer 48 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
James Shelton Agar
Top achievements
Rank 2
James Shelton Agar asked on 10 Mar 2009, 09:48 PM
Hi there. Coverflow works great for me. However, as an client requested that whether if we can leave a space margin between main picture and other flows. as org quotes " just move the other photos away from the main one so there is a gap and people can easily see where the main photo start & end"

thanks

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 11 Mar 2009, 04:57 PM
Hi James Shelton Agar,

If I understand you correctly, you can achieve your goal by changing the ItemsPanelTemplate. The following is an example of CoverFlow control with more space between the items:

        <navigation:RadCoverFlow ItemMaxHeight="200" x:Name="coverFlow" DisplayMemberPath="Image"
            <navigation:RadCoverFlow.ItemsPanel> 
                <ItemsPanelTemplate> 
                    <navigation:AutoCenterPanel x:Name="Container"
                        <navigation:AutoCenterPanel.ArrangeStrategy> 
                            <navigation:PositionsBasedArrangeStrategy> 
                                <navigation:PositionsBasedArrangeStrategy.PositionDefinitions> 
                                    <navigation:RelativeWidthPositionDefinition 
                                            PositionRelativeWidth="1.6" /> 
                                    <navigation:RelativeWidthPositionDefinition 
                                            PositionRelativeWidth="0.2" /> 
                                </navigation:PositionsBasedArrangeStrategy.PositionDefinitions> 
                            </navigation:PositionsBasedArrangeStrategy> 
                        </navigation:AutoCenterPanel.ArrangeStrategy> 
                        <navigation:AutoCenterPanel.SlideAnimation> 
                            <Storyboard Storyboard.TargetName="Container" 
                                    Storyboard.TargetProperty="SlideProgress"
                                <DoubleAnimation Duration="0:0:0.300" To="100" /> 
                            </Storyboard> 
                        </navigation:AutoCenterPanel.SlideAnimation> 
                    </navigation:AutoCenterPanel> 
                </ItemsPanelTemplate> 
            </navigation:RadCoverFlow.ItemsPanel> 
        </navigation:RadCoverFlow> 

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
CoverFlow
Asked by
James Shelton Agar
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or