Step 1 of 3: Setting up the Application

In this step you'll begin in Visual Studio to create a Windows Phone application using ProgressBarfor 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.   Edit the TitlePanel content to change the text in the TextBlock controls. It will appear similar to the following:

<!--TitlePanel contains the name of the application and page title-->

<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">

    <TextBlock x:Name="ApplicationTitle" Text="ComponentOne Studio for Windows Phone" Style="{StaticResource PhoneTextNormalStyle}"/>

    <TextBlock x:Name="PageTitle" Text="ProgressBar" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" FontSize="64"/>

</StackPanel>

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

6.   Navigate to the Toolbox and double-click the C1ProgressBar icon to add the control to the grid. The XAML markup should resemble the following:

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

            <my:C1ProgressBar HorizontalAlignment="Left" Margin="10,10,0,0" Name="C1ProgressBar1" VerticalAlignment="Top"/>           

        </Grid>

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


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