EX: Add Items to the C1Toolbar

The following XAML code shows you how to add a C1ToolbarGroup, C1ToolbarStrip, and C1ToolbarButton to the C1Toolbar control:

<c1:C1Toolbar Name="c1Toolbar1">

 <c1:C1ToolbarTabControl>

  <c1:C1ToolbarTabItem Header="Home">

   <c1:C1ToolbarGroup Header="Clipboard">

     <c1:C1ToolbarButton LabelTitle="Paste" LargeImageSource="/Images/Paste.png" />

     <c1:C1ToolbarButton LabelTitle="Cut" SmallImageSource="/Images/Cut.png" />

     <c1:C1ToolbarButton LabelTitle="Copy" SmallImageSource="/Images/Copy.png" />

   </c1:C1ToolbarGroup>

   <c1:C1ToolbarGroup Header="Font">

    <c1:C1ToolbarStrip>

       <c1:C1ToolbarToggleButton LabelTitle="Bold" />

       <c1:C1ToolbarToggleButton LabelTitle="Italic" />

       <c1:C1ToolbarToggleButton LabelTitle="Underline" />

    </c1:C1ToolbarStrip>

   </c1:C1ToolbarGroup>

  </c1:C1ToolbarTabItem>

 </c1:C1ToolbarTabControl>     

</c1:C1Toolbar>

The following image shows how the C1Toolbar control will appear after adding the above XAML code:

 


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