Class
BackgroundGrid

Represents a visual grid of lines usually used as background surface.

Definition

Namespace:Telerik.Windows.Controls.Diagrams.Primitives

Assembly:Telerik.Windows.Controls.Diagrams.dll

Syntax:

cs-api-definition
public class BackgroundGrid : BackgroundGridBase

Inheritance: objectBackgroundGridBaseBackgroundGrid

Inherited Members BackgroundGridBase.Refresh(bool)

Constructors

BackgroundGrid()

Declaration

cs-api-definition
public BackgroundGrid()

Fields

CellSizeProperty

Identifies the CellSize attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty CellSizeProperty

Field Value

DependencyProperty

IsDynamicProperty

Identifies the IsDynamic attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsDynamicProperty

Field Value

DependencyProperty

IsGridVisibleProperty

Identifies the IsGridVisible attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty IsGridVisibleProperty

Field Value

DependencyProperty

LineStrokeDashArrayProperty

Identifies the LineStrokeDashArray attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty LineStrokeDashArrayProperty

Field Value

DependencyProperty

LineStrokeProperty

Identifies the LineStroke attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty LineStrokeProperty

Field Value

DependencyProperty

LineStrokeThicknessProperty

Identifies the LineStrokeThickness attached property.

Declaration

cs-api-definition
public static readonly DependencyProperty LineStrokeThicknessProperty

Field Value

DependencyProperty

Properties

CellSize

Gets the cell size.

Declaration

cs-api-definition
protected override Size CellSize { get; }

Property Value

Size

Overrides BackgroundGridBase.CellSize

IsDynamic

Gets a value indicating whether the grid will be synchronized with the diagram viewport changes (panning and zooming).

Declaration

cs-api-definition
protected override bool IsDynamic { get; }

Property Value

bool

Overrides BackgroundGridBase.IsDynamic

LineStroke

Gets the cell size.

Declaration

cs-api-definition
protected override Brush LineStroke { get; }

Property Value

Brush

Overrides BackgroundGridBase.LineStroke

LineStrokeDashArray

Gets the cell size.

Declaration

cs-api-definition
protected override DoubleCollection LineStrokeDashArray { get; }

Property Value

DoubleCollection

Overrides BackgroundGridBase.LineStrokeDashArray

LineStrokeThickness

Gets the cell size.

Declaration

cs-api-definition
protected override double LineStrokeThickness { get; }

Property Value

double

Overrides BackgroundGridBase.LineStrokeThickness

Methods

GetCellSize(DependencyObject)

Gets the cell size.

Declaration

cs-api-definition
public static Size GetCellSize(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

Size

GetIsDynamic(DependencyObject)

Gets a value indicating whether the grid will be synchronized with the diagram viewport changes (panning and zooming).

Declaration

cs-api-definition
public static bool GetIsDynamic(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetIsGridVisible(DependencyObject)

Gets the grid visibility.

Declaration

cs-api-definition
public static bool GetIsGridVisible(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

bool

GetLineStroke(DependencyObject)

Gets the line stroke.

Declaration

cs-api-definition
public static Brush GetLineStroke(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

Brush

GetLineStrokeDashArray(DependencyObject)

Gets the line stroke dash array.

Declaration

cs-api-definition
public static DoubleCollection GetLineStrokeDashArray(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

DoubleCollection

GetLineStrokeThickness(DependencyObject)

Gets the line stroke thickness.

Declaration

cs-api-definition
public static double GetLineStrokeThickness(DependencyObject obj)

Parameters

obj

DependencyObject

Returns

double

OnApplyTemplate()

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

Declaration

cs-api-definition
public override void OnApplyTemplate()

Overrides BackgroundGridBase.OnApplyTemplate()

OnInitialized(EventArgs)

Raises the event. This method is invoked whenever is set to true internally.

Declaration

cs-api-definition
protected override void OnInitialized(EventArgs e)

Parameters

e

EventArgs

The RoutedEventArgs that contains the event data.

ResetTheme()

Resets the theme.

Declaration

cs-api-definition
public void ResetTheme()

SetCellSize(DependencyObject, Size)

Sets the cell size.

Declaration

cs-api-definition
public static void SetCellSize(DependencyObject obj, Size value)

Parameters

obj

DependencyObject

value

Size

SetIsDynamic(DependencyObject, bool)

Sets value indicating whether the grid will be synchronized with the diagram viewport changes (panning and zooming).

Declaration

cs-api-definition
public static void SetIsDynamic(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetIsGridVisible(DependencyObject, bool)

Sets the grid visibility.

Declaration

cs-api-definition
public static void SetIsGridVisible(DependencyObject obj, bool value)

Parameters

obj

DependencyObject

value

bool

SetLineStroke(DependencyObject, Brush)

Sets the line stroke.

Declaration

cs-api-definition
public static void SetLineStroke(DependencyObject obj, Brush value)

Parameters

obj

DependencyObject

value

Brush

SetLineStrokeDashArray(DependencyObject, DoubleCollection)

Sets the line stroke dash array.

Declaration

cs-api-definition
public static void SetLineStrokeDashArray(DependencyObject obj, DoubleCollection value)

Parameters

obj

DependencyObject

value

DoubleCollection

SetLineStrokeThickness(DependencyObject, double)

Sets the line stroke thickness.

Declaration

cs-api-definition
public static void SetLineStrokeThickness(DependencyObject obj, double value)

Parameters

obj

DependencyObject

value

double