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

CoverFlow and ViewBox

3 Answers 49 Views
CoverFlow
This is a migrated thread and some comments may be shown as answers.
Fredrik
Top achievements
Rank 1
Fredrik asked on 21 Oct 2010, 03:59 PM
Hello !!!

I have pages as items in a coverflow.
When scaling the pages without using the coverflow I can use the ViewBox to have automaticly scaling.
I tried to use the ViewBox with the coverflow but with no success.

<Grid x:Name="LayoutRoot">
     <Viewbox>
         <telerik:RadCoverFlow Name="radCoverFlow1" ItemScale="0.85" ReflectionHeight="0" OffsetY="450" DistanceBetweenItems="150" RotationY="45">
             <telerik:RadCoverFlow.Background>
                 <ImageBrush ImageSource="/Prototyp;component/2592-1944-Beach3.jpg" />
             </telerik:RadCoverFlow.Background>
             <local:Page1></local:Page1>
             <local:Page2></local:Page2>
             <local:Page3></local:Page3>
     </telerik:RadCoverFlow>
     </Viewbox>
 </Grid>

Am I missing out on something ?

Regards

Fredrik

3 Answers, 1 is accepted

Sort by
0
Fredrik
Top achievements
Rank 1
answered on 22 Oct 2010, 09:04 AM
Found a way.

<Grid x:Name="LayoutRoot">
         <Viewbox>
         <Grid x:Name="Grid1">
             <telerik:RadCoverFlow Name="radCoverFlow1" ItemScale="0.85" ReflectionHeight="0" OffsetY="450" DistanceBetweenItems="150" RotationY="45">
             <telerik:RadCoverFlow.Background>
                 <ImageBrush ImageSource="/Prototyp;component/2592-1944-Beach3.jpg" />
             </telerik:RadCoverFlow.Background>
             <local:Page1></local:Page1>
             <local:Page2></local:Page2>
             <local:Page3></local:Page3>
         </telerik:RadCoverFlow>
             </Grid>
 
     </Viewbox>
 </Grid>

Then in my mainpage constructor I added

Grid1.Width = App.Current.Host.Content.ActualWidth;
Grid1.Height = App.Current.Host.Content.ActualHeight;

0
Fredrik
Top achievements
Rank 1
answered on 22 Oct 2010, 12:19 PM
Now I got to strugle with the 100% CPU usage.....
Hmm, maybee something is firing lots of events all the time.
For now the CF component is useless in my scenario.
Any ideas ?

Regards

Fredrik
0
George
Telerik team
answered on 27 Oct 2010, 01:10 PM
Hi Fredrik,

I tried to reproduce the problem, but to no avail. Could you please send us a sample project that reproduces the problem? It would be very helpful to investigate the problem.

I will be glad to assist you further. 

All the best,
George
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
Fredrik
Top achievements
Rank 1
Answers by
Fredrik
Top achievements
Rank 1
George
Telerik team
Share this question
or