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
The line major brush.
LineMajorVisibility
The major line visibility.
LineMinorBrush
The line minor brush.
LineMinorVisibility
The minor line visibility.
StripeAlternatingBrush
The brush used to fill alternate stripes.
StripeBrush
The brush used to fill stripes.
StripeVisibility
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
Defines the LineMajorBrush property.
public static readonly DependencyProperty LineMajorBrushProperty
LineMajorVisibilityProperty
Defines the LineMajorVisibility property.
public static readonly DependencyProperty LineMajorVisibilityProperty
LineMinorBrushProperty
Defines the LineMinorBrush property.
public static readonly DependencyProperty LineMinorBrushProperty
LineMinorVisibilityProperty
Defines the LineMinorVisibility property.
public static readonly DependencyProperty LineMinorVisibilityProperty
StripeAlternatingBrushProperty
Defines the StripeAlternatingBrush property.
public static readonly DependencyProperty StripeAlternatingBrushProperty
StripeBrushProperty
Defines the StripeBrush property.
public static readonly DependencyProperty StripeBrushProperty
StripeVisibilityProperty
Defines the StripeVisibility property.
public static readonly DependencyProperty StripeVisibilityProperty