Prev | Current Page 387 | Next

Matthew MacDonald

"Pro WPF with VB 2008: Windows Presentation Foundation with .NET 3.5"

Technically, it doesn??™t matter where you define the Popup tag because it??™s not associated
with any particular control. Instead, it??™s up to you to set the placement properties to position
the Popup in the correct spot. In this example, the Popup appears at the current mouse position,
which is the simplest option.
You can use a Popup to provide a link for a
specific term
of interest.

PopupAnimation="Slide" AllowsTransparency="True">


For more information, see
Click="lnk_Click">Wikipedia



This example presents two elements that you might not have seen before. The Run element
allows you to apply formatting to a specific part of a TextBlock??”it??™s a piece of flow
content that you??™ll learn about in Chapter 19 when you consider documents. The Hyperlink
CHAPTER 7 n CLASSIC CONTROLS 205
allows you to provide a clickable piece of text. You??™ll take a closer look at it in Chapter 9, when
you consider page-based applications.


Pages:
375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399