CoverFlow and ViewBox

4 posts, 0 answers
  1. Fredrik
    Fredrik avatar
    54 posts
    Member since:
    Sep 2010

    Posted 21 Oct 2010 Link to this post

    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
  2. Fredrik
    Fredrik avatar
    54 posts
    Member since:
    Sep 2010

    Posted 22 Oct 2010 Link to this post

    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;

  3. DevCraft banner
  4. Fredrik
    Fredrik avatar
    54 posts
    Member since:
    Sep 2010

    Posted 22 Oct 2010 Link to this post

    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
  5. George
    Admin
    George avatar
    1332 posts

    Posted 27 Oct 2010 Link to this post

    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
Back to Top