PDF for UWP | ComponentOne
PDF for UWP Quick Start / Step 1 of 4: Creating an Application with C1PdfDocument Object
In This Topic
    Step 1 of 4: Creating an Application with C1PdfDocument Object
    In This Topic

    In this step, you'll create a Windows Store application and add a C1PdfDocument object.

    1. In Visual Studio, select File | New | Project.
    2. In the New Project dialog box, select Templates | Visual C# | Windows | Universal. From the templates list, select Blank App (Universal Windows).
    3. Right-click the project name in the Solution Explorer and select Add Reference.
    4. In the Add Reference dialog box, locate and select the C1.UWP.Pdf.dll and click OK to add the reference to your project.
    5. Place your cursor between the <Grid> tags. Add the following markup to create a C1PdfViewer control:
      XAML
      Copy Code
      <PdfViewer:C1PdfViewer Name="c1PdfViewer1" Grid.Row="1"/>
      
    6. Then add the markup for a general ProgressRing control and a general Button control. This markup also adds a Click event so you can save your PDF document:
      XAML
      Copy Code
      <ProgressRing x:Name="progressRing" Grid.Row="1"/>
      <Button x:Name="btnSave"  Content="Save PDF" Click="btnSave_Click" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,70,140,0" Height="40" Width="106"/>
      

    In this step, you created a Universal Windows application, added references, and added control to the application. In the next step, you'll add code to your application to create your PDF document.