ComponentOne OrgChart for UWP
OrgChart for UWP Task- Based Help / Adding C1OrgChart to the Application
In This Topic
    Adding C1OrgChart to the Application
    In This Topic

    Complete the following steps to add a C1OrgChart control to your application:

    1. In Visual Studio 2012 Select File | New | Project.
    2. In the New Project dialog box, expand a language in the left pane, under the language select Windows Store, and in the templates list select Blank App (XAML).
    3. Enter a Name and click OK to create your project.
    4. Navigate to the Toolbox and double-click the C1OrgChart icon. This will add the control to your application. This will add the reference and XAML namespace automatically.
    5. Add the <OrgChart:C1OrgChart Name="C1OrgChart1" /> tag within the Grid tags on the page to add the C1OrgChart control to the application.
      The XAML will appear similar to the following:
    Markup
    Copy Code
    <Grid Name="LayoutRoot" Background="White">
        <OrgChart:C1OrgChart Name="C1OrgChart1" />
    </Grid>
    

    This will add a C1OrgChart control named "C1OrgChart1" to the application. If you run the application now, you will see a blank page.

    You've successfully set up your application's user interface, but if you run your application now you'll see that the C1OrgChart control currently contains no content.

    If the C1OrgChart control was installed to the Visual Studio Toolbox, simply double-clicking the icon or dragging the control onto a page will automatically perform the control-related steps above.
    See Also