In This Article

ChartMarker Class

Represents a control capable of rendering predefined shapes.

[TemplatePart(Name = "PART_Path", Type = typeof(Path))]
public class ChartMarker : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Constructors

ChartMarker()

Initializes an instance of the class.

public ChartMarker()

Properties

Path

The Path associated with the marker.

protected Path? Path { get; }

Property Value

Path

ShapeKind

A ChartMarkerShapeKind indicating what kind of shape should be rendered by the marker.

public ChartMarkerShapeKind ShapeKind { get; set; }

Property Value

ChartMarkerShapeKind:

The default value is Ellipse.

Methods

OnApplyTemplate()

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

public override void OnApplyTemplate()

UpdatePath()

Updates the Geometry of the Path element.

protected virtual void UpdatePath()

Fields

ShapeKindProperty

Defines the ShapeKind property.

public static readonly DependencyProperty ShapeKindProperty

Extension Methods