HeaderedTextBlock Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
The HeaderedTextBlock has been replaced with the more generic HeaderedContentControl.
Defines a control for providing a header for read-only text.
[System.Obsolete("The HeaderedTextBlock has been replaced with the more generic HeaderedContentControl.")]
[Windows.UI.Xaml.Markup.ContentProperty(Name="Inlines")]
[Windows.UI.Xaml.TemplatePart(Name="HeaderContentPresenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))]
public class HeaderedTextBlock : Windows.UI.Xaml.Controls.Control
[<System.Obsolete("The HeaderedTextBlock has been replaced with the more generic HeaderedContentControl.")>]
[<Windows.UI.Xaml.Markup.ContentProperty(Name="Inlines")>]
[<Windows.UI.Xaml.TemplatePart(Name="HeaderContentPresenter", Type=typeof(Windows.UI.Xaml.Controls.ContentPresenter))>]
type HeaderedTextBlock = class
inherit Control
Public Class HeaderedTextBlock
Inherits Control
- Inheritance
-
Windows.UI.Xaml.Controls.ControlHeaderedTextBlock
- Attributes
-
ObsoleteAttribute Windows.UI.Xaml.Markup.ContentPropertyAttribute Windows.UI.Xaml.TemplatePartAttribute
Constructors
HeaderedTextBlock() |
Initializes a new instance of the HeaderedTextBlock class. |
Fields
HeaderProperty |
Defines the Header dependency property. |
HeaderTemplateProperty |
Defines the HeaderTemplate dependency property. |
HideTextIfEmptyProperty |
Defines the HideTextIfEmpty dependency property. |
OrientationProperty |
Defines the Orientation dependency property. |
TextProperty |
Defines the Text dependency property. |
TextStyleProperty |
Defines the TextStyle dependency property. |
Properties
Header |
Gets or sets the header. |
HeaderTemplate |
Gets or sets the header style. |
HideTextIfEmpty |
Gets or sets a value indicating whether the Text TextBlock is hidden if its value is empty |
Inlines |
Gets the collection of inline text elements within a Windows.UI.Xaml.Controls.TextBlock. |
Orientation |
Gets or sets the orientation. |
Text |
Gets or sets the text. |
TextStyle |
Gets or sets the text style. |
Methods
OnApplyTemplate() |
Called when applying the control template. |