Step 1 of 4: Setting up the Application

In this step you'll begin in Visual Studio to create a Windows Phone application using ToggleSwitchfor Windows Phone. Complete the following steps:

1.   In Visual Studio, select File | New | Project to open the New Project dialog box.

2.   In the New Project dialog box, select a language in the left pane, and in the templates list select Windows Phone Application. Enter a Name for your project and click OK. The New Windows Phone Application dialog box will appear.

3.   Click OK to close the New Windows Phone Application dialog box and create your project.

4.   In the XAML window of the project, place the cursor between the <Grid x:Name="ContentPanel"></Grid> tags and click once.

5.   Navigate to the Toolbox and double-click the C1ToggleSwitch icon to add the control to the grid. Create an opening and closing tag. The XAML markup should resemble the following:

<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">

            <my:C1ToggleSwitch>

               

            </my:C1ToggleSwitch>

           

        </Grid>

You have successfully created a Windows Phone application containing a C1ToggleSwitch control. In the next step, you will customize the control.


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