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

Text Selection

As mentioned previously, TextBlock optionally supports text selection. To enable it, you must set its IsTextSelectionEnabled property to true. When you do this, people using touch input can tap any word to highlight it, and then drag two circle adornments to change the range of the selection. With a mouse or pen, a caret is rendered instead of the typical mouse pointer, and users can do the typical selection gestures of dragging to define the selection range or double tapping to select an entire word. A right tap gesture on the TextBlock (which is press-and-hold for touch input) brings up a context menu with the choices of Copy (only if text is selected) and Select All, shown in Figure 12.11. The standard keyboard shortcuts of ...

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