Popup
A Popup
is a regular UIElement
that can float on top of other elements. It doesn’t have any visual appearance by itself, but it can contain any System.Object
as the value of its Child
property, much like a content control. Besides there being no restrictions on a Popup
’s content, there is no restriction on the number of Popup
s you can show simultaneously (just as with other UIElement
s). This makes it the most flexible out of all the popup controls. Popup
s are internally leveraged by XAML controls such as Flyout
, ToolTip
, and AppBar
for overlaying the rest of a Page
’s content.
Figure 14.13 demonstrates the behavior of the Popup
in the following Page
:
<Page ...> <Grid Width="420" Height="420"> <!-- Inner ...
Get Universal Windows® Apps with XAML and C# Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.