Extended Library for WPF and Silverlight | ComponentOne
Book / C1Book Task-Based Help / Setting the Initial Page
In This Topic
    Setting the Initial Page
    In This Topic

    The C1Book.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 C1Book.CurrentPage property at design time, in XAML, and in code.

    At Design Time

    To set the C1Book.CurrentPage property to 3 at design time, 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 C1Book.CurrentPage property to 3, add CurrentPage="3" to the <c1:C1Book> tag so that it appears similar to the following:

    XAML
    Copy Code
    <c1:C1Book x:Name="C1Book1" Height="300" Width="450" CurrentPage="3">
    

     

    In Code

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

    Visual Basic
    Copy Code
    Me.C1Book1.CurrentPage = 3
    
    C#
    Copy Code
    this.c1Book1.CurrentPage = 3;
    

    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 3.