Basic Library for WinRT
Step 2 of 3: Adding C1TabControl to the Application

In the last step, you created a Windows Store project. In this step, you'll add a C1TabControl to the application.

Complete the following steps:

  1. Place the cursor between the <Grid> and </Grid> tags in MainPage.xaml, and click once.
  2. Add the following markup within the <Grid> and </Grid> tags:
Markup
Copy Code
<C1:C1TabControl x:Name="tabControl" TabStripOverlapDirection="Left"  TabStripOverlap="8" TabItemShape="Sloped" TabItemClose="InEachTab" TabStripPlacement="Bottom" TabStripMenuVisibility="Visible">
</C1:C1TabControl>

This markup adds a C1TabControl to the project. This sets the following properties:

You’ll also need to add C1TabItems within the C1TabControl.

  1. Add the following markup within the <C1:C1TabControl> and </C1:C1TabControl> tags:
Markup
Copy Code
<C1:C1TabItem Header="Notes" CanUserPin="True">
    <RichEditBox HorizontalAlignment="Left" Height="680" VerticalAlignment="Top" Width="1330"/>
</C1:C1TabItem>
<C1:C1TabItem Header="Tasks">
    <RichEditBox HorizontalAlignment="Left" Height="680" VerticalAlignment="Top" Width="1330"/>
</C1:C1TabItem>
<C1:C1TabItem Header="Reminders">
    <RichEditBox HorizontalAlignment="Left" Height="680" VerticalAlignment="Top" Width="1330"/>
</C1:C1TabItem>
<C1:C1TabItem Header="Topics" CanUserPin="True">
    <RichEditBox HorizontalAlignment="Left" Height="680" VerticalAlignment="Top" Width="1330"/>
</C1:C1TabItem>

This adds C1TabItems, each containing a RichEditBox. Note that in two of the C1TabItems, CanUserPin is set to True allowing the tabs to be pinned at run time.

In this step, you added and customized the C1TabControl control. In the next step, you will run the program and observe what you've accomplished during this quick start.

See Also

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback