In This Article

DataPointLabel Class

A label on a data point.

[TemplatePart(Name = "PART_ContentPresenter", Type = typeof(ContentPresenter))]
public class DataPointLabel : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Properties

DesiredPosition

The desired position.

public Point? DesiredPosition { get; set; }

Property Value

Point

SeriesDefaultBrush

The series default brush.

public Brush? SeriesDefaultBrush { get; set; }

Property Value

Brush

Text

The label text.

public string? Text { get; set; }

Property Value

string

WasMouseInsideBounds

Indicates whether the data point was mouse inside bounds.

public bool WasMouseInsideBounds { get; set; }

Property Value

bool

Methods

Hide()

Begins the animation to hide the data point label.

public void Hide()

OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().

public override void OnApplyTemplate()

Show()

Begins the animation to show the data point label.

public void Show()

Fields

SeriesDefaultBrushProperty

Defines the SeriesDefaultBrush property.

public static readonly DependencyProperty SeriesDefaultBrushProperty

TextProperty

Defines the Text property.

public static readonly DependencyProperty TextProperty

WasMouseInsideBoundsProperty

Defines the WasMouseInsideBounds property.

public static readonly DependencyProperty WasMouseInsideBoundsProperty

Extension Methods