O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

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

Understanding Text Element Types

Within the Windows Phone Framework Class Library (FCL), there are some types, which, on first appearance, you could be forgiven for thinking that API similarities are the result of common ancestry. The TextBlock and TextBox elements, for example, have numerous similarly named text and font related properties, yet both have their own distinct API and their closest ancestor is FrameworkElement (see Figure 6.1).

Image

FIGURE 6.1 Text related framework elements.

The TextBox and PasswordBox are derived from the System.Windows.Control class. The Control class is the base class for UI elements that use a ControlTemplate

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