1 Answer

0 votes
by
A ChildWindow control is a light weight window that can be used as a child window or a popup control. The parent window is automatically disabled when a child window is active and modal. You can think of a ChildWindow as a custom modal or modeless dialog where you can place any child controls you want. However, the ChildWindow has several common Window properties.
 
Creating a ChildWindow:
 
The ChildWindow element represents a WPF ChildWindow control in XAML. The ChildWindow control is defined in the System.Windows.Controls namespace.
 
creates a simple ChildWindow control with its Width, Height, Name, IsModal and Caption property. 
  1. <wpfx:ChildWindow Name="PopupChildWindow" Caption="Child Window" Width="300" Height="200"IsModal="True" />  

We need to call the Show() method to make a Child Window visible.

  1. PopupChildWindow.Show();   
mainwindow

Related questions

0 votes
0 votes
    What is the Tab Control in WPF?...
asked Apr 9, 2021 in Education by JackTerrance
0 votes
    What is WPF Dependency Property and how can we use?...
asked Apr 9, 2021 in Education by JackTerrance
0 votes
    What is resource in WPF? How many types of resources in WPF?...
asked Apr 9, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    What are Resources in WPF?...
asked Apr 8, 2021 in Education by JackTerrance
...