The
Popup element represents a WPF Popup control in XAML.
<Popup></Popup>
The
Width and Height properties represent the width and the height of a Popup. The Name property represents the name of the
control, which is a unique identifier of a control. The Margin property tells
the location of a Popup on the parent control. The HorizontalAlignment and
VerticalAlignment properties are used to set horizontal and vertical alignments.
The
following code snippet sets the name, height, and width of a Popup control. The code also sets horizontal alignment to
left and vertical alignment to top.
<Popup Margin="10,10,0,13" Name="Popup1" HorizontalAlignment="Left"
VerticalAlignment="Top" Width="194" Height="200" />
To
make a popup control visible, you need to set IsOpen property to true.
IsOpen="True"