Skip to main content

TextBlock

C# API / Fluence.Wpf.Controls

  • Assembly: Fluence.Wpf
  • Namespace: Fluence.Wpf.Controls
public class TextBlock : ContentControl

A Fluent Design enhanced TextBlock that supports the FluentTypography type ramp.

Base type: ContentControl (including inherited WPF and .NET members)

C# source

Constructors​

TextBlock​

public TextBlock()

Creates a new TextBlock instance.

Properties​

Text​

public string Text { get; set; }

Gets or sets the text displayed by the inner TextBlock.

TextTrimming​

public TextTrimming TextTrimming { get; set; }

Gets or sets how text is trimmed when it overflows the layout area.

TextWrapping​

public TextWrapping TextWrapping { get; set; }

Gets or sets how text wraps within the inner TextBlock.

Typography​

public FluentTypography Typography { get; set; }

Gets or sets the Fluent typography style applied to the inner text.

Methods​

OnApplyTemplate​

public override void OnApplyTemplate()

Documentation inherited from the ContentControl API.

OnCreateAutomationPeer​

protected override AutomationPeer OnCreateAutomationPeer()

Documentation inherited from the ContentControl API.

Dependency property identifiers​

Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.

TextProperty​

public static readonly DependencyProperty TextProperty

Identifies the Text dependency property.

TextTrimmingProperty​

public static readonly DependencyProperty TextTrimmingProperty

Identifies the TextTrimming dependency property.

TextWrappingProperty​

public static readonly DependencyProperty TextWrappingProperty

Identifies the TextWrapping dependency property.

TypographyProperty​

public static readonly DependencyProperty TypographyProperty

Identifies the Typography dependency property.