Infragistics(R) NetAdvantage(R) : WPF 2012.1
Adding xamDialogWindow to Your Application
E-mail your feedback on this topic.
Shared XAML > Interactions > xamDialogWindow > Adding xamDialogWindow to Your Application

Glossary Item Box

Before You Begin

This topic is designed to get you up and running as quickly as possible by describing the basic steps required for adding the xamDialogWindow™ control to your page using XAML.

What You Will Accomplish

You will add a basic xamDialogWindow control to your page.

Follow these Steps

  1. Create a Microsoft® WPF™ application.
  2. In the Solution Explorer, add the following references to your project:
    • InfragisticsWPF4.v12.1.dll
    • InfragisticsWPF4.Controls.Interactions.XamDialogWindow.v12.1.dll
  3. Add the following using/Import directives in the code-behind and a namespace declaration in the opening Window tag.

    In XAML:


    In Visual Basic:

    Imports Infragistics.Controls.Interaction

    In C#:

    using Infragistics.Controls.Interactions;
  4. Add the xamDialogWindow control to a Grid container named LayoutRoot.

    In XAML:

    <Grid x:Name="LayoutRoot">
            Width="200" Height="200" 
            Content="This is a sample dialog window" 
            IsModal="True" StartupPosition="Center" />
    Create an instance of the xamDialogWindow control in the page constructor after the InitializeComponent method and add it to the Grid panel's Children collection.

    In Visual Basic:

    Dim xamDialogWindow As New XamDialogWindow()
    xamDialogWindow.Width = 200
    xamDialogWindow.Height = 200
    xamDialogWindow.Content = "This is a sample dialog window"
    xamDialogWindow.IsModal = True
    xamDialogWindow.StartupPosition = StartupPosition.Center

    In C#:

    XamDialogWindow xamDialogWindow = new XamDialogWindow();
    xamDialogWindow.Width = 200;
    xamDialogWindow.Height = 200;
    xamDialogWindow.Content = "This is a sample dialog window";
    xamDialogWindow.IsModal = true;
    xamDialogWindow.StartupPosition = StartupPosition.Center;
  5. Save and run your application.

Adding xamDialogWindow to Your Page Using XAML

Related Topics