Basic Library for WPF and Silverlight | ComponentOne
WPF and Silverlight Edition Basic Library / HyperPanel / HyperPanel Quick Start / Step 1 of 3: Setting Up the Application
In This Topic
    Step 1 of 3: Setting Up the Application
    In This Topic

    In this step, you'll create an application using HyperPanel for WPF and Silverlight.

    Complete the following steps:

    1. In Visual Studio, select File | New Project.
    2. In the New Project dialog box, select either Windows Desktop or Silverlight from the Templates in the left-hand pane.
      New Project Dialog Box

      New Project Dialog Box

    3. Select WPF Application or Silverlight Application, depending on the template you chose.
    4. Enter a Name for your project, for example "QuickStart", and click OK. In a WPF Application, the MainWindow.xaml file will open.
      1. If you selected a Silverlight Application, when you click OK, the New Silverlight Application dialog box will appear.
      2. Click OK to accept default settings. This will close the New Silverlight Application dialog box and create your project.
      3. The MainPage.xaml file should open.
    5. Add the following assemblies to your application by right-clicking the References folder and selecting Add Reference:
      • WPF: C1.WPF.4.dll
      • Silverlight: C1.Silverlight.5.dll
    6. Navigate to the Toolbox and double-click the C1HyperPanel icon to add the panel to the project.
    7. Give your control a name by adding x:Name="c1hp1" to the <c1:C1HyperPanel> tag so that it appears similar to the following:
      XAML
      Copy Code
      <c1:C1HyperPanel x:Name="c1hp1"></c1:C1HyperPanel>
      

      By giving it a unique identifier, you'll be able to access the control in code.
    8. Resize your control by adding Height="Auto" Width="Auto" to the <c1:C1HyperPanel> tag so that it appears similar to the following:
      XAML
      Copy Code
      <c1:C1HyperPanel x:Name="c1hp1" Height="Auto" Width="Auto"></c1:C1HyperPanel>