Example #1
0
 public YaxisControl()
 {
     this.CommonData       = new CommonProperty();
     this.NumberPointCount = 2;
     this._rootCanvas      = new DrawingCanvas();
     this.Content          = this._rootCanvas;
 }
 public BaseContentControl()
 {
     _rootCanvas        = new DrawingCanvas();
     this.Content       = _rootCanvas;
     CommonData         = new CommonProperty();
     FastSourceInstance = new FastSource <T>();
     FastSourceInstance.ItemsSourceChangeEvent += Instance_ItemsSourceChangeEvent;
     FastSourceInstance.NotifyToolTipEvent     += FastSourceInstance_NotifyToolTipEvent;
 }
Example #3
0
        public CrossLine()
        {
            Color penColor = Color.FromRgb(0, 0, 0);

            BlackPen.Brush = new SolidColorBrush(penColor);
            BlackPen.Freeze();
            dasharray.Add(0);
            dasharray.Add(6);
            this.Background       = Brushes.Transparent;
            CommonData            = new CommonProperty();
            IsDrawCrossXaxisLabel = true;
            FastSourceInstances   = new List <IFastSource>();
        }
Example #4
0
 public Xaxis(CommonProperty CommonData)
 {
     this.CommonData = CommonData;
 }
Example #5
0
 int NumberPointCount = 2;//y轴小数点位数
 public Yaxis(CommonProperty CommonData, IFastSource FastSourceInstance, int NumberPointCount = 2)
 {
     this.CommonData         = CommonData;
     this.FastSourceInstance = FastSourceInstance;
     this.NumberPointCount   = NumberPointCount;
 }
Example #6
0
 /// <summary>
 /// 初始参数设置
 /// </summary>
 /// <param name="CommonData">公共数据</param>
 /// <param name="maxSelector">获取最大值</param>
 /// <param name="minSelector">获取最小值</param>
 public void SetParameter(CommonProperty CommonData, Func <T, double> maxSelector, Func <T, double> minSelector)
 {
     this.CommonData  = CommonData;
     this.MaxSelector = maxSelector;
     this.MinSelector = minSelector;
 }