C1OutlookBar Quick Start > Step 1 of 3: Creating a WPF/Silverlight Application |
In this step you'll create a WPF/Silverlight application in Visual Studio using OutlookBar for WPF and Silverlight.
To set up your project and add a C1OutlookBar control to your application, complete the following steps:
WPF XAML |
Copy Code
|
---|---|
<Window xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" x:Class="WpfApplication17.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> <Grid> <c1:C1OutlookBar /> </Grid> </Window> |
Silverlight XAML |
Copy Code
|
---|---|
<UserControl x:Class="OutlookBar.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:my="clr-namespace:C1.Silverlight;assembly=C1.Silverlight"> <Grid x:Name="LayoutRoot" Background="White"> <c1:C1OutlookBar c1:C1NagScreen.Nag="True"> </c1:C1OutlookBar> </Grid> </UserControl> |
In the next step, you will add C1OutlookItems to the C1OutlookBar.