Setting the Initial Page

The CurrentPage property gets or sets the value of the C1Book control's current page. By default the C1Book control starts with the first page displayed but you can customize this by setting the CurrentPage property at design time in Microsoft Expression Blend, in XAML, and in code.

At Design Time in Blend

To set the CurrentPage property to 3 at design time in Blend, complete the following steps:

1.   Click the C1Book control once to select it.

2.   Navigate to the Properties window and click in the text box next to the CurrentPage item.

3.   Enter a number, for example "3", for the displayed initial page.

In XAML

For example, to set the CurrentPage property to 3, add CurrentPage="3" to the <c1:C1Book> tag so that it appears similar to the following:

<c1:C1Book x:Name="c1book1" Height="300" Width="450" CurrentPage="3">

In Code

For example, to set the CurrentPage property to 3, add the following code to your project:

      Visual Basic

      C#

What You've Accomplished

You've changed the book's initial starting page. If you run the application, the initial page that appears will be page


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.