O'Reilly logo

XAML Unleashed by Adam Nathan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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"/>

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required