AxisPanel

StockSharp.Xaml.Charting.Themes

Ein Panel, das eine Bitmap und ein Labels Canvas zur Verwendung auf Axis in Ultrachart bereitstellt

Erbt von: Panel

Implementiert: IAxisPanel, INotifyPropertyChanged

Eigenschaften

AddLabels
public Action<AxisCanvas> AddLabels { get; set; }
value = axisPanel.AddLabels
axisPanel.AddLabels = value

Intern verwendet: Gibt ein Verfahren an, mit dem das Panel mit Tick-Etiketten gefüllt wird.

AxisAlignment
public AxisAlignment AxisAlignment { get; set; }
value = axisPanel.AxisAlignment
axisPanel.AxisAlignment = value

Bekommt oder setzt die Achsenausrichtung.

DrawLabels
public bool DrawLabels { get; set; }
value = axisPanel.DrawLabels
axisPanel.DrawLabels = value

Bekommt oder legt einen Wert fest, der angibt, ob dieses Panel Etiketten zeichnet

DrawMajorTicks
public bool DrawMajorTicks { get; set; }
value = axisPanel.DrawMajorTicks
axisPanel.DrawMajorTicks = value

Bekommt oder setzt einen Wert, der angibt, ob dieses Panel Major tickt

DrawMinorTicks
public bool DrawMinorTicks { get; set; }
value = axisPanel.DrawMinorTicks
axisPanel.DrawMinorTicks = value

Bekommt oder setzt einen Wert, der angibt, ob dieses Panel Minor ticks zeichnet

IsHorizontalAxis
public bool IsHorizontalAxis { get; }
value = axisPanel.IsHorizontalAxis

Erhält einen Wert, der angibt, ob dieses Pabel eine horizontale Achse ist.

IsLabelCullingEnabled
public bool IsLabelCullingEnabled { get; set; }
value = axisPanel.IsLabelCullingEnabled
axisPanel.IsLabelCullingEnabled = value

Bekommt oder legt einen Wert fest, der angibt, ob Label Culling aktiviert ist (wenn sich Labels überschneiden) in dieser AxisPanel Instanz

LabelToTickIndent
public Thickness LabelToTickIndent { get; }
value = axisPanel.LabelToTickIndent

Das Etikett kreuzt den Einschnitt an.

MajorTickLineStyle
public Style MajorTickLineStyle { get; set; }
value = axisPanel.MajorTickLineStyle
axisPanel.MajorTickLineStyle = value

Bekommt oder setzt den Haupt-Tick-Linien-Stil.

MajorTickSize
public double MajorTickSize { get; private set; }
value = axisPanel.MajorTickSize
axisPanel.MajorTickSize = value

Bekommt die Größe eines großen Ticks.

MinorTickLineStyle
public Style MinorTickLineStyle { get; set; }
value = axisPanel.MinorTickLineStyle
axisPanel.MinorTickLineStyle = value

Bekommt oder setzt den Moll Tick Line Style.

MinorTickSize
public double MinorTickSize { get; private set; }
value = axisPanel.MinorTickSize
axisPanel.MinorTickSize = value

Bekommt die Größe eines kleinen Ticks.

Methoden

AddTickLabels
public void AddTickLabels(Action<AxisCanvas> addOnCanvas)
axisPanel.AddTickLabels(addOnCanvas)

Zeichnet die Tick-Etiketten.

ArrangeOverride
protected override Size ArrangeOverride(Size finalSize)
result = axisPanel.ArrangeOverride(finalSize)

Führt den Arrangieren Pass auf AxisPanel.

ClearLabels
public void ClearLabels()
axisPanel.ClearLabels()

Löscht die AxisPanel

DrawTick
private void DrawTick(IRenderContext2D renderContext, IPen2D tickPen, float coord, float offset, double tickSize)
axisPanel.DrawTick(renderContext, tickPen, coord, offset, tickSize)

Zeichnet ein einzelnes Häkchen auf der Achse mit dem angegebenen Stift (TargetTypeIPen2D), XyDirection und der Ganzzahlkoordinate.

renderContext
Die Leinwand, auf die man sich stützen kann.
tickPen
Der Stift (TargetTypeIPen2D) für die Tick-Linie
coord
Wenn die Richtung XDirection ist, ist das Coodinat eine X-Koordinate, andernfalls ist es eine Y-Koordinate.
offset
tickSize
Die Größe der Zecke
DrawTicks
protected virtual void DrawTicks(IRenderContext2D renderContext, Style tickStyle, double tickSize, float[] tickCoords, float offset)
axisPanel.DrawTicks(renderContext, tickStyle, tickSize, tickCoords, offset)

Zeichnet Zecken auf Achse Bitmap

renderContext
tickStyle
tickSize
tickCoords
offset
DrawTicks
public virtual void DrawTicks(TickCoordinates tickCoords, float offset)
axisPanel.DrawTicks(tickCoords, offset)

Zeichnet Zecken auf der Achse

tickCoords
offset
GetRenderContextSize
protected virtual Size GetRenderContextSize()
result = axisPanel.GetRenderContextSize()

Bekommt Größe des Bildes für Ticks Zeichnung

MeasureOverride
protected override Size MeasureOverride(Size availableSize)
result = axisPanel.MeasureOverride(availableSize)

Führt die Maßnahme übergeben auf AxisPanel.

MeasureTickSize
private double MeasureTickSize(Style lineStyle)
result = axisPanel.MeasureTickSize(lineStyle)

misst die Größe, die erforderlich ist, um Ticks auf der Achse zu zeichnen

OnPropertyChanged
protected virtual void OnPropertyChanged(string propertyName)
axisPanel.OnPropertyChanged(propertyName)

INotifyPropertyChanged@ Implementierung

propertyName
Name der Immobilie.

Ereignisse

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
axisPanel.PropertyChanged += handler

Tritt auf, wenn sich ein Eigenschaftswert ändert.

Felder

AxisAlignmentProperty
public static readonly DependencyProperty AxisAlignmentProperty
value = AxisPanel.AxisAlignmentProperty

Die Achsausrichtungseigenschaft

AxisLabelToTickIndentProperty
public static readonly DependencyProperty AxisLabelToTickIndentProperty
value = AxisPanel.AxisLabelToTickIndentProperty

Die AxisLabelToTickIndent-Eigenschaft

DrawLabelsProperty
public static readonly DependencyProperty DrawLabelsProperty
value = AxisPanel.DrawLabelsProperty

Die Eigenschaft der Draw Labels

DrawMajorTicksProperty
public static readonly DependencyProperty DrawMajorTicksProperty
value = AxisPanel.DrawMajorTicksProperty

Die Eigenschaft der Draw Major Ticks

DrawMinorTicksProperty
public static readonly DependencyProperty DrawMinorTicksProperty
value = AxisPanel.DrawMinorTicksProperty

Die Eigenschaft Draw Minor Ticks

IsLabelCullingEnabledProperty
public static readonly DependencyProperty IsLabelCullingEnabledProperty
value = AxisPanel.IsLabelCullingEnabledProperty

Die IsLabelCullingEnabled DependencyProperty

MajorTickLineStyleProperty
public static readonly DependencyProperty MajorTickLineStyleProperty
value = AxisPanel.MajorTickLineStyleProperty

Die Haupt Tick Line Style Eigenschaft

MinorTickLineStyleProperty
public static readonly DependencyProperty MinorTickLineStyleProperty
value = AxisPanel.MinorTickLineStyleProperty

Die Minor Tick Line Style Eigenschaft