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

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

2 Answers 32 Views
Book
This is a migrated thread and some comments may be shown as answers.
Nikhil
Top achievements
Rank 1
Nikhil asked on 28 Apr 2011, 02:29 PM
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 Answers, 1 is accepted

Sort by
0
Accepted
Kiril Stanoev
Telerik team
answered on 28 Apr 2011, 03:10 PM
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
0
Nikhil
Top achievements
Rank 1
answered on 28 Apr 2011, 03:33 PM
Thank you so much. It's working.
Tags
Book
Asked by
Nikhil
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Nikhil
Top achievements
Rank 1
Share this question
or