Class XyLayer
public class XyLayer : AnimationLayer, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IAddChild, IDraw- Inheritance
- 
      
      
      
      
      
      
      
      
      
      
      
      XyLayer
- Implements
- Derived
- Inherited Members
- Extension Methods
Fields
ForegroundProperty
public static readonly DependencyProperty ForegroundPropertyField Value
LineStyleProperty
public static readonly DependencyProperty LineStylePropertyField Value
maxX
protected double maxXField Value
maxY
protected double maxYField Value
minX
protected double minXField Value
minY
protected double minYField Value
xAxisProperty
public static readonly DependencyProperty xAxisPropertyField Value
xConvertProperty
public static readonly DependencyProperty xConvertPropertyField Value
xDisplayProperty
public static readonly DependencyProperty xDisplayPropertyField Value
xMapProperty
public static readonly DependencyProperty xMapPropertyField Value
yAxisProperty
public static readonly DependencyProperty yAxisPropertyField Value
yConvertProperty
public static readonly DependencyProperty yConvertPropertyField Value
yDisplayProperty
public static readonly DependencyProperty yDisplayPropertyField Value
yMapProperty
public static readonly DependencyProperty yMapPropertyField Value
Properties
DefaultKey
public static ComponentResourceKey DefaultKey { get; }Property Value
Foreground
public Brush Foreground { get; set; }Property Value
LineStyle
public Style LineStyle { get; set; }Property Value
xAxis
public DoubleCollection xAxis { get; set; }Property Value
xConvert
public Func<double, string> xConvert { get; set; }Property Value
xDisplay
[TypeConverter(typeof(DisplayTypeConverter))]
public ObservableCollection<string> xDisplay { get; set; }Property Value
xMap
[TypeConverter(typeof(DataArrayTypeConverter))]
public ObservableCollection<double[]> xMap { get; set; }Property Value
yAxis
public DoubleCollection yAxis { get; set; }Property Value
yConvert
public Func<double, string> yConvert { get; set; }Property Value
yDisplay
[TypeConverter(typeof(DisplayTypeConverter))]
public ObservableCollection<string> yDisplay { get; set; }Property Value
yMap
[TypeConverter(typeof(DataArrayTypeConverter))]
public ObservableCollection<double[]> yMap { get; set; }Property Value
Methods
Draw(Canvas)
public override void Draw(Canvas canvas)Parameters
- canvasCanvas
GetValueY(double)
获取Canvas位置对应的y值
public virtual double GetValueY(double value)Parameters
- valuedouble
Returns
GetX(double)
获取值对应Canvas的位置
public virtual double GetX(double value)Parameters
- valuedouble
Returns
GetX(double, double)
获取值对应Canvas的位置
public virtual double GetX(double value, double width)Parameters
Returns
GetY(double)
获取值对应Canvas的位置
public virtual double GetY(double value)Parameters
- valuedouble
Returns
GetY(double, double)
获取值对应Canvas的位置
public virtual double GetY(double value, double height)Parameters
Returns
InitX()
protected virtual void InitX()InitY()
protected virtual void InitY()