C1CarouselPanel Quick Start > Step 1 of 3: Creating the Application |
In this step you'll create and set up an application. Note that in this example, you'll use images installed with the WPF and Silverlight Edition samples. If you choose, you can substitute other images but you will have to update the steps below. To set up your project, complete the following steps:
- WPF: C1.WPF and C1.WPF.Carousel
- Silverlight: C1.Silverlight and C1.Silverlight.Carousel
xmlns:c1=http://schemas.componentone.com/winfx/2006/xaml
The namespaces will now appear similar to the following:
Silverlight XAML |
Copy Code
|
---|---|
<UserControl x:Class="QuickStart.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" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400"> |
WPF XAML |
Copy Code
|
---|---|
<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"> |
This is a unified namespace that will enable you to work with most WPF or Silverlight Edition controls without adding multiple namespaces.
You've successfully created a new Silverlight application and added image resources to the application. In the next step you'll add a ListBox and create a C1CarouselPanel template to apply to the ListBox control.