AxisPanel
StockSharp.Xaml.Charting.Themes
提供比特地图和标签的面板,供Ultrachart内轴使用
继承自: Panel
实现: IAxisPanel, INotifyPropertyChanged
属性
AddLabels
public Action<AxisCanvas> AddLabels { get; set; }
value = axisPanel.AddLabels
axisPanel.AddLabels = value
内部使用。指定一种方法,用于在面板上填入勾选标签。
AxisAlignment
public AxisAlignment AxisAlignment { get; set; }
value = axisPanel.AxisAlignment
axisPanel.AxisAlignment = value
获取或设置轴向对齐。
DrawLabels
public bool DrawLabels { get; set; }
value = axisPanel.DrawLabels
axisPanel.DrawLabels = value
获取或设置一个值,表示是否绘制了标签
DrawMajorTicks
public bool DrawMajorTicks { get; set; }
value = axisPanel.DrawMajorTicks
axisPanel.DrawMajorTicks = value
获取或设置一个值,以显示此面板是否绘制主要勾选
DrawMinorTicks
public bool DrawMinorTicks { get; set; }
value = axisPanel.DrawMinorTicks
axisPanel.DrawMinorTicks = value
获取或设置一个值,以显示此面板是否绘制小勾选
IsHorizontalAxis
public bool IsHorizontalAxis { get; }
value = axisPanel.IsHorizontalAxis
获得一个数值,以显示此 Pabel 是否是水平轴 。
IsLabelCullingEnabled
public bool IsLabelCullingEnabled { get; set; }
value = axisPanel.IsLabelCullingEnabled
axisPanel.IsLabelCullingEnabled = value
获取或设置一个值, 表示标签 Culling 是否启用( 当标签重叠时) 。 @% AxisPanel%%%% incentral
LabelToTickIndent
public Thickness LabelToTickIndent { get; }
value = axisPanel.LabelToTickIndent
使标签缩进到勾选中。
MajorTickLineStyle
public Style MajorTickLineStyle { get; set; }
value = axisPanel.MajorTickLineStyle
axisPanel.MajorTickLineStyle = value
获取或设置主勾选行样式。
MajorTickSize
public double MajorTickSize { get; private set; }
value = axisPanel.MajorTickSize
axisPanel.MajorTickSize = value
得到一个大勾勾的大小。
MinorTickLineStyle
public Style MinorTickLineStyle { get; set; }
value = axisPanel.MinorTickLineStyle
axisPanel.MinorTickLineStyle = value
获取或设置小勾选行样式。
MinorTickSize
public double MinorTickSize { get; private set; }
value = axisPanel.MinorTickSize
axisPanel.MinorTickSize = value
得到小勾当的大小。
方法
AddTickLabels
public void AddTickLabels(Action<AxisCanvas> addOnCanvas)
axisPanel.AddTickLabels(addOnCanvas)
绘制勾选标签。
ArrangeOverride
protected override Size ArrangeOverride(Size finalSize)
result = axisPanel.ArrangeOverride(finalSize)
Performs the arrange pass on AxisPanel.
DrawTick
private void DrawTick(IRenderContext2D renderContext, IPen2D tickPen, float coord, float offset, double tickSize)
axisPanel.DrawTick(renderContext, tickPen, coord, offset, tickSize)
在轴上绘制一单勾,使用指定的笔(TargetType IPen2D),XyDirection和整数坐标.
- renderContext
- 画布可以取用。
- tickPen
- 笔 (TargetType IPen2D) 应用到勾选行
- coord
- 要绘制的整数坐标。 如果方向是 X 方向, 被编码为 X 坐标, 否则是 Y 坐标 。
- offset
- tickSize
- 勾选的大小
DrawTicks
protected virtual void DrawTicks(IRenderContext2D renderContext, Style tickStyle, double tickSize, float[] tickCoords, float offset)
axisPanel.DrawTicks(renderContext, tickStyle, tickSize, tickCoords, offset)
在轴位图上绘制勾选符
- renderContext
- tickStyle
- tickSize
- tickCoords
- offset
DrawTicks
public virtual void DrawTicks(TickCoordinates tickCoords, float offset)
axisPanel.DrawTicks(tickCoords, offset)
在轴上绘制勾选符
- tickCoords
- offset
GetRenderContextSize
protected virtual Size GetRenderContextSize()
result = axisPanel.GetRenderContextSize()
获取勾选绘图图像大小
MeasureOverride
protected override Size MeasureOverride(Size availableSize)
result = axisPanel.MeasureOverride(availableSize)
Performs the measure pass on AxisPanel.
MeasureTickSize
private double MeasureTickSize(Style lineStyle)
result = axisPanel.MeasureTickSize(lineStyle)
测量在轴上绘制勾选标记所需的大小
OnPropertyChanged
protected virtual void OnPropertyChanged(string propertyName)
axisPanel.OnPropertyChanged(propertyName)
INotifyPropertyChanged implementation
- propertyName
- 财产名称.
事件
PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
axisPanel.PropertyChanged += handler
当属性值发生变化时, 会发生什么 。
字段
AxisAlignmentProperty
public static readonly DependencyProperty AxisAlignmentProperty
value = AxisPanel.AxisAlignmentProperty
轴对齐属性
AxisLabelToTickIndentProperty
public static readonly DependencyProperty AxisLabelToTickIndentProperty
value = AxisPanel.AxisLabelToTickIndentProperty
The AxisLabelToTickIndent property
DrawLabelsProperty
public static readonly DependencyProperty DrawLabelsProperty
value = AxisPanel.DrawLabelsProperty
绘图标签属性
DrawMajorTicksProperty
public static readonly DependencyProperty DrawMajorTicksProperty
value = AxisPanel.DrawMajorTicksProperty
绘图主勾选属性
DrawMinorTicksProperty
public static readonly DependencyProperty DrawMinorTicksProperty
value = AxisPanel.DrawMinorTicksProperty
绘图小勾选属性
IsLabelCullingEnabledProperty
public static readonly DependencyProperty IsLabelCullingEnabledProperty
value = AxisPanel.IsLabelCullingEnabledProperty
IsLabelCullingEnabled DependencyProperty号机车
MajorTickLineStyleProperty
public static readonly DependencyProperty MajorTickLineStyleProperty
value = AxisPanel.MajorTickLineStyleProperty
主要勾选行样式属性
MinorTickLineStyleProperty
public static readonly DependencyProperty MinorTickLineStyleProperty
value = AxisPanel.MinorTickLineStyleProperty
细勾选行样式属性