[]
In this step, a WPF application is created using TileView for WPF. When a C1TileView control is added to the application, it provides an interface for displaying content. To set up the project and add a C1TileView control, complete the following steps:
Create a new WPF project in Visual Studio. In this example the application is named "QuickStart."
Note: If you use a different project name, be sure to change references to "QuickStart" in later steps to the name of your project.
In the Solution Explorer, right-click the project name and choose Add Reference. In the Add Reference dialog box, locate and select the following assemblies and click OK to add the references to your project.
C1.WPF
C1.WPF.TileView
In the MainWindow.xaml or MainPage.xaml file, open the XAML view; in this quick start we add the C1TileView control using XAML markup.
Add the XAML namespace to the Window or UserControl class with the following markup:
xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml"so that the WPF Window class appears similar to the following:
In the WPF MainWindow.xaml file
<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="ComponentOne TileView for WPF" Height="275" Width="425">This is a unified namespace that enables you to work with most ComponentOne WPF controls without adding multiple namespaces.
Add the <c1:C1TileView x:Name="C1TileView1" /> tag within the Grid element on the page to add the C1TileView control to the application.
The XAML appears similar to the following:
<Grid>
<c1:C1TileView x:Name="C1TileView1"></c1:C1TileView>
</Grid>This adds a C1TileView control named "C1TileView1" to the application.
This sets up your application's user interface, but if you run your application now, the C1TileView control contains no content. In the next steps we add content to the C1TileView control, and then observe some of the run-time interactions possible with the control.