C1OutlookBar Quick Start > Step 2 of 3: Adding C1OutlookItems |
Next we are going to add C1OutlookItems to the C1OutlookBar. We'll add two items, an Inbox folder and a Tasks folder.
<c1:C1OutlookBar></c1:C1OutlookBar>
tags and press ENTER.<c1:C1OutlookItem Header="Inbox"> </c1:C1OutlookItem>
XAML |
Copy Code
|
---|---|
<c1:C1TreeView x:Name="contacts" BorderThickness="0" > <c1:C1TreeViewItem Header="Inbox" IsExpanded="True"> <c1:C1TreeViewItem > <c1:C1TreeViewItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="Folder1"/> </StackPanel> </c1:C1TreeViewItem.Header> </c1:C1TreeViewItem> <c1:C1TreeViewItem > <c1:C1TreeViewItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="Folder2"/> </StackPanel> </c1:C1TreeViewItem.Header> </c1:C1TreeViewItem> </c1:C1TreeViewItem> </c1:C1TreeView> |
XAML |
Copy Code
|
---|---|
<c1:C1OutlookItem x:Name="selectedItem" Header="Tasks" > <c1:C1TreeView x:Name="tasks" BorderThickness="0" > <c1:C1TreeViewItem Header="My Tasks" IsExpanded="True"> <c1:C1TreeViewItem > <c1:C1TreeViewItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="To-Do List"/> </StackPanel> </c1:C1TreeViewItem.Header> </c1:C1TreeViewItem> <c1:C1TreeViewItem > <c1:C1TreeViewItem.Header> <StackPanel Orientation="Horizontal"> <TextBlock Text="Tasks"/> </StackPanel> </c1:C1TreeViewItem.Header> </c1:C1TreeViewItem> </c1:C1TreeViewItem> </c1:C1TreeView> </c1:C1OutlookItem> |
In the next step you will run the application.