(This content is stored in the Popup.Child property, rather than the ToolTip.Content
property.) Also, like the ToolTip, the content in the Popup can extend beyond the bounds of
the window. Lastly, the Popup can be placed using the same placement properties and shown
or hidden using the same IsOpen property.
The differences between the Popup and ToolTip are more important. They include the
following:
??? The Popup is never shown automatically. You must set the IsOpen property for it to
appear.
??? By default, the Popup.StaysOpen property is set to True, and the Popup does not disappear
until you explicitly set its IsOpen property to False. If you set StaysOpen to False,
the Popup disappears when the user clicks somewhere else.
nNote A popup that stays open can be a bit jarring because it behaves like a separate stand-alone window.
If you move the window underneath, the popup remains fixed in its original position. You won??™t witness
this behavior with the ToolTip or with a Popup that sets StaysOpen to False because as soon as you click to
move the window, the tooltip or popup window disappears.
??? The Popup provides a PopupAnimation property that lets you control how it comes into
view when you set IsOpen to True. Your options include None (the default), Fade (the
opacity of the popup gradually increases), Scroll (the popup slides in from the upperleft
corner of the window, space permitting), and Slide (the popup slides down into
place, space permitting).
Pages:
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397