GridPattern
This panel is used to draw regular grid patterns.
Erbt von: Panel
Konstruktoren
GridPattern()
Create an empty GridPattern panel.
Eigenschaften
Methoden
GetBarThickness(DependencyObject) : int
Gets the thickness of horizontal or vertical bars, in multiples of the cell size.
- d
- a Path
Rückgabe: This defaults to 1, a single cell width or height, depending on the DependencyObject).
GetCrossLength(DependencyObject) : double
Gets the length of a HorizontalCross or VerticalCross line.
- d
- a Path
Rückgabe: This defaults to 6.
GetFigure(DependencyObject) : GridFigure
Gets the GridFigure of the Path that describes its appearance.
- d
- a Path
Rückgabe: This defaults to None
GetInterval(DependencyObject) : int
Gets how far apart the lines (or the starts of the bar edges) should be drawn, in multiples of the cell size.
- d
- a Path
Rückgabe: This defaults to 1, a single cell width or height, depending on the value of DependencyObject).
GetOffset(DependencyObject) : int
Gets the offset for starting the count at which Paths should be drawn, in multiples of the cell size.
- d
- a Path
Rückgabe: This defaults to zero.
HitTestCore(PointHitTestParameters) : GeometryHitTestResult
This override is necessary to avoid a performance bug in WPF.
- hitTestParameters
HitTestCore(GeometryHitTestParameters) : GeometryHitTestResult
This override is necessary to avoid a performance bug in WPF.
- hitTestParameters
MeasureOverride(Size) : Size
Supply the geometries for child Path elements that have a DependencyObject) that is not None, and measure all children.
- availableSize
SetBarThickness(DependencyObject, int)
Sets the thickness of bars, in multiples of the cell size.
- d
- a Path
- v
- a positive integer, in units of the cell width or height, depending on the direction given by DependencyObject)
SetCrossLength(DependencyObject, double)
Sets the length of a HorizontalCross or VerticalCross line.
- d
- a Path
- v
- a positive number, in model coordinates; the actual length of the line is limited by the CellSize.
SetFigure(DependencyObject, GridFigure)
Sets the GridFigure of the Path to determine its appearance.
- d
- a Path
- v
- a GridFigure; the panel assumes None otherwise
SetInterval(DependencyObject, int)
Sets how far apart the lines (or the starts of the bar edges) should be drawn.
- d
- a Path
- v
- a positive integer, in units of the cell width or height, depending on the direction given by DependencyObject)
SetOffset(DependencyObject, int)
Sets the starting offset at which the given Path is drawn, in multiples of the cell size.
- d
- a Path
- v
- a positive integer, in units of the cell width or height, depending on the direction given by DependencyObject)
Felder
BarThicknessProperty : DependencyProperty
Identifies the BarThickness attached dependency property.
CellSizeProperty : DependencyProperty
Identifies the CellSize dependency property.
CrossLengthProperty : DependencyProperty
Identifies the CrossLength attached dependency property.
FigureProperty : DependencyProperty
Identifies the Figure attached dependency property.
IntervalProperty : DependencyProperty
Identifies the Interval attached dependency property.
OffsetProperty : DependencyProperty
Identifies the Offset attached dependency property.
OriginProperty : DependencyProperty
Identifies the Origin dependency property.