Step 1 of 3: Creating an Application with a C1Maps Control

In this step, you'll begin in Expression Blend to create a Silverlight application using the C1Maps control. You will also set the control's properties.

Complete the following steps:

1.   In Expression Blend, select File | New Project.

2.   In the New Project dialog box, select the Silverlight project type in the left pane and, in the right-pane, select Silverlight Application + Website.

3.   Enter a Name and Location for your project, select a Language in the drop-down box, and click OK. Blend creates a new application, which opens with the MainPage.xaml file displayed in Design view.

4.   Add the C1Maps control to your project by completing the following steps:

a.   On the menu, select Window | Assets to open the Assets tab.

b.   Under the Assets tab, enter "C1Maps" into the search bar.

c.    The C1Maps control's icon appears.

d.   Double-click the C1Maps icon to add the control to your project.

5.   In the Objects and Timeline panel, select [C1Maps] and then, under the Properties panel, set the following properties:

      Set the Name property to "C1Maps1" so that your control will have a unique identifier to call in code.

      Set the Width property to "405".

      Set the Height property to "472".

      Set the Zoom property to "2" to set the zoom factor to 2x the original zoom.

      Set the Center property to "-65, -25" so that only South America appears on the map. 

In this step, you created a Blend Silverlight project and added a C1Maps control to it; in addition, you set the properties of the C1Maps control.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.