In This Article

GridVisual Class

Draws a grid behind the chart at major and minor points on the X and Y axis.

[TemplatePart(Name = "PART_GridDrawingSurface", Type = typeof(Canvas))]
public class GridVisual : Control
Inheritance:
object Visual UIElement FrameworkElement Control object

Properties

LineMajorBrush

Gets or sets the line major brush.

public Brush LineMajorBrush { get; set; }

Property Value

Brush:

The line major brush.

LineMajorVisibility

Gets or sets the major line visibility.

public GridLineVisibility LineMajorVisibility { get; set; }

Property Value

GridLineVisibility:

The major line visibility.

LineMinorBrush

Gets or sets the line minor brush.

public Brush LineMinorBrush { get; set; }

Property Value

Brush:

The line minor brush.

LineMinorVisibility

Gets or sets the minor line visibility.

public GridLineVisibility LineMinorVisibility { get; set; }

Property Value

GridLineVisibility:

The minor line visibility.

StripeAlternatingBrush

Gets or sets the brush used to fill alternate stripes.

public Brush StripeAlternatingBrush { get; set; }

Property Value

Brush:

The brush used to fill alternate stripes.

StripeBrush

Gets or sets the brush used to fill stripes.

public Brush StripeBrush { get; set; }

Property Value

Brush:

The brush used to fill stripes.

StripeVisibility

Gets or sets the stripe visibility.

public GridStripeVisibility StripeVisibility { get; set; }

Property Value

GridStripeVisibility:

The stripe visibility.

Methods

OnApplyTemplate()

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

public override void OnApplyTemplate()

Refresh(Size)

Clears and redraws the grid.

public virtual void Refresh(Size plotSize)
Parameter Type Description
plotSize Size

Fields

LineMajorBrushProperty

Identifies the LineMajorBrush dependency property. This field is read-only.

public static readonly DependencyProperty LineMajorBrushProperty

LineMajorVisibilityProperty

Identifies the LineMajorVisibility dependency property. This field is read-only.

public static readonly DependencyProperty LineMajorVisibilityProperty

LineMinorBrushProperty

Identifies the LineMinorBrush dependency property. This field is read-only.

public static readonly DependencyProperty LineMinorBrushProperty

LineMinorVisibilityProperty

Identifies the LineMinorVisibility dependency property. This field is read-only.

public static readonly DependencyProperty LineMinorVisibilityProperty

StripeAlternatingBrushProperty

Identifies the StripeAlternatingBrush dependency property. This field is read-only.

public static readonly DependencyProperty StripeAlternatingBrushProperty

StripeBrushProperty

Identifies the StripeBrush dependency property. This field is read-only.

public static readonly DependencyProperty StripeBrushProperty

StripeVisibilityProperty

Identifies the StripeVisibility dependency property. This field is read-only.

public static readonly DependencyProperty StripeVisibilityProperty