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

3 posts, 1 answers
  1. Nikhil
    Nikhil avatar
    11 posts
    Member since:
    Apr 2011

    Posted 28 Apr 2011 Link to this post

    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?
  2. Answer
    Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1512 posts

    Posted 28 Apr 2011 Link to this post

    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
  3. DevCraft banner
  4. Nikhil
    Nikhil avatar
    11 posts
    Member since:
    Apr 2011

    Posted 28 Apr 2011 Link to this post

    Thank you so much. It's working.
Back to Top