Text Elements
The Inline
class derives from TextElement
, a class representing all kinds of text content. Note that TextElement
s are not UIElement
s; they do not individually participate in the standard UIElement
mechanisms such as layout, input events, and focus. They are specifically for text controls and text-specific layout rules are applied to them.
Two types of TextElement
s exist—Inline
s and Block
s. A Block
is a rectangular region, whereas an Inline
is a region that flows more freely with text, potentially occupying a nonrectangular space (flowing from the end of one line to the beginning of the next). There are several more types of Inline
objects besides the previously seen Run
, LineBreak
, and Underline
. All the relevant classes and their ...
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.