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 Popups you can show simultaneously (just as with other UIElements).

Figure 14.5 demonstrates the behavior of the Popup in the following Page:

<Page ...>  <Grid Width="420" Height="420">    <!-- Inner Grid with a Button-in-Popup and a separate Button -->    <Grid Background="Red" Margin="100">      <Popup IsOpen="True">         <Button Content="Button in Popup in Grid" Background="Blue"/>

Get XAML 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.