Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Book > Will it be possible to make Flipdirection Vertically (like BottomToTop)

Answered Will it be possible to make Flipdirection Vertically (like BottomToTop)

Feed from this thread
  • Nikhil avatar

    Posted on Apr 28, 2011 (permalink)

    We want to use RadBook control for calender flip. but the current flip orientation is LeftToRight and RightToLeft only. will it be possible to make it BottomToTop and TopToBottom and the orientation of Book control as verticle?

    Reply

  • Answer Kiril Stanoev Kiril Stanoev avatar

    Posted on Apr 28, 2011 (permalink)

    Hello Nikhil,

    You can use our LayoutTransformControl to rotate RadBook:

    <telerik:LayoutTransformControl Width="500" Height="500">
        <telerik:LayoutTransformControl.LayoutTransform>
            <RotateTransform Angle="89.7" />
        </telerik:LayoutTransformControl.LayoutTransform>
        <telerik:RadBook x:Name="book1">
            <telerik:RadBook.ItemTemplate>
                <DataTemplate>
                    <Border BorderBrush="Black" BorderThickness="1" Background="LightGreen">
                        <telerik:LayoutTransformControl>
                            <telerik:LayoutTransformControl.LayoutTransform>
                                <RotateTransform Angle="-89.7" />
                            </telerik:LayoutTransformControl.LayoutTransform>
                            <TextBlock Text="{Binding }" FontSize="36"
                                    HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </telerik:LayoutTransformControl>
                    </Border>
                </DataTemplate>
            </telerik:RadBook.ItemTemplate>
        </telerik:RadBook>
    </telerik:LayoutTransformControl>

    public MainPage()
    {
        InitializeComponent();
        this.book1.ItemsSource = Enumerable.Range(0, 10);
    }

    Which outputs:


    You might ask why the angle is 89.7. If the angle is 90 there are certain clipping issues which we have not yet addressed. My advice is to experiment with this and see which approach suits you best.

    All the best,
    Kiril Stanoev
    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

    Reply

  • Nikhil avatar

    Posted on Apr 28, 2011 (permalink)

    Thank you so much. It's working.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Book > Will it be possible to make Flipdirection Vertically (like BottomToTop)