protected override Size MeasureOverride(Size availableSize) { if (YaxisControl != null) { YaxisControl.Measure(availableSize); } foreach (var item in CandleControls) { item.Measure(availableSize); } foreach (var item in VolumeControls) { item.Measure(availableSize); } foreach (var item in LineControls) { item.Measure(availableSize); } if (CrossLineControl != null) { CrossLineControl.Measure(availableSize); } return(base.MeasureOverride(availableSize)); }
private void Instance_ItemsSourceChangeEvent() { if (YaxisControl != null) { YaxisControl.SourceChanged(CommonData.YMaxValue, CommonData.YMinValue); } DrawingImage(); }
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { switch (connectionId) { case 1: this.yaxis = ((WpfApplication1.YaxisControl)(target)); return; case 2: this.crossline = ((WpfApplication1.CrossLine)(target)); return; } this._contentLoaded = true; }
protected override Size ArrangeOverride(Size finalSize) { if (YaxisControl != null) { YaxisControl.Arrange(new Rect(finalSize)); } foreach (var item in CandleControls) { item.Arrange(new Rect(finalSize)); } foreach (var item in VolumeControls) { item.Arrange(new Rect(finalSize)); } foreach (var item in LineControls) { item.Arrange(new Rect(finalSize)); } if (CrossLineControl != null) { CrossLineControl.Arrange(new Rect(finalSize)); } return(base.ArrangeOverride(finalSize)); }