Image > Image for Silverlight Quick Start > Step 1 of 3: Creating a Silverlight Application |
In this step you'll create a Silverlight application in Visual Studio using Image for Silverlight.
To set up your project and add a C1Image control to your application, complete the following steps:
XAML |
Copy Code
|
---|---|
<UserControl x:Class="C1Image.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:my="clr-namespace:C1.Silverlight.Imaging;assembly=C1.Silverlight.Imaging"> <Grid x:Name="LayoutRoot" Background="White"> <my:C1Image HorizontalAlignment="Left" Margin="170,81,0,0" Name="c1Image1" VerticalAlignment="Top" /> </Grid> </UserControl> |
Note that the C1.Silverlight.Imaging namespace and <my:C1Image> tag have been added to the project.
In the next step, you will add an image to the control.