In this topic we add a C1TileView control to your application. Complete the following steps that are noted where they differ between WPF and Silverlight:
Note: If the C1TileView control is installed in the Visual Studio Toolbox, you can drag the control onto a page to automatically perform the rest of the steps.
XAML |
Copy Code
|
---|---|
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" |
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"> |
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"> |
XAML |
Copy Code
|
---|---|
<Grid x:Name="LayoutRoot" Background="White"> <c1:C1TileView x:Name="C1TileView1" /> </Grid> |
You've successfully set up your application's user interface, but if you run your application now, the C1TileView control has no content. See the Adding Items to C1TileView topic for more information.