<Grid x:Name="LayoutRoot" Width="600" Height="400"> <ig:XamDialogWindow x:Name="DialogWindow" Width="200" Height="200" IsModal="True" /> </Grid>
The xamDialogWindow control allows you to create modal or modeless dialog windows within your application.
Modal dialog – This dialog window always maintains the active dialog status in the container where it is placed until it is closed. When a modal dialog window is opened, your end user cannot interact with any other part of dialog’s parent container until the dialog window is closed. This is useful, for example if an error occurs and you need your end user to correct the error before they can continue.
Modeless dialog – This dialog window allows your end user to interact with the rest of the application while it remains open. Modeless dialog windows are usually used for informational purposes and do not require a response from the end user.
To set the modal type of the dialog window, you simply set the xamDialogWindow control’s IsModal property.
The following code demonstrates how to create a modal dialog window.
In XAML:
<Grid x:Name="LayoutRoot" Width="600" Height="400"> <ig:XamDialogWindow x:Name="DialogWindow" Width="200" Height="200" IsModal="True" /> </Grid>
In Visual Basic:
DialogWindow.IsModal = True
In C#:
DialogWindow.IsModal = true;