WPF and Silverlight Edition Basic Library / Progress Bar / ProgressBar Quick Start
ProgressBar Quick Start

The following quick start guide is intended to get you up and running with ProgressBar for WPF and Silverlight. In this quick start you'll start in Visual Studio and create a new project, add the C1ProgressBar control to your application, and observe the control at run time.

In this step you'll begin in Visual Studio to create a Silverlight application using ProgressBar for Silverlight. 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 Silverlight Application. Enter a Name for your project and click OK. The New Silverlight Application dialog box will appear.
  3. Click OK to close the New Silverlight Application dialog box and create your project.
  4. In the XAML window of the project, resize the UserControl by changing Width="400" Height="300" to Width="Auto" Height="Auto" in the <UserControl> tag so that it appears similar to the following:
XAML
Copy Code
<UserControl x:Class="C1RangeSlider.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="Auto" Height="Auto">
  1. The UserControl will now resize to accommodate any content placed within it.
  2. In the XAML window of the project, place the cursor between the <Grid> and </Grid> tags and click once.
  3. Navigate to the Toolbox and double-click the C1ProgressBar icon to add the control to the grid. Note that the C1.Silverlight namespace and <c1:C1ProgressBar></c1:C1ProgressBar> tags have been added to the project.

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