internal override void OnPropertyChanged(RadPropertyEventArgs e) { base.OnPropertyChanged(e); if (e.Key == DisplayDatePropertyKey) { DateTime oldDisplayDate = DateTime.MinValue; if (e.OldValue != null) { oldDisplayDate = (DateTime)e.OldValue; } DateTime newDisplayDate = DateTime.MinValue; if (e.NewValue != null) { newDisplayDate = (DateTime)e.NewValue; } if (CalendarMathHelper.IsCalendarViewChanged(oldDisplayDate, newDisplayDate, this.DisplayMode)) { this.Invalidate(); } } else if (e.Key == DisplayModePropertyKey) { this.UpdateCurrentView(); } }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e == null) { return; } if (e.Key == HorizontalFromPropertyKey) { this.horizontalFrom = e.NewValue; this.UpdateX1Plot(); } if (e.Key == HorizontalToPropertyKey) { this.horizontalTo = e.NewValue; this.UpdateX2Plot(); } if (e.Key == VerticalFromPropertyKey) { this.verticalFrom = e.NewValue; this.UpdateY1Plot(); } if (e.Key == VerticalToPropertyKey) { this.verticalTo = e.NewValue; this.UpdateY2Plot(); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e != null && e.Key == ContentPropertyKey) { this.desiredSize = RadSize.Empty; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == LogarithmBasePropertyKey) { this.logBase = (double)e.NewValue; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == PlotModePropertyKey) { this.plotMode = (AxisPlotMode)e.NewValue; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == AxisPropertyKey) { this.axis = (AxisModel)e.NewValue; this.UpdateCore(); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e.Key == LabelFormatPropertyKey) { this.labelFormat = (string)e.NewValue; } else if (e.Key == RangePropertyKey) { this.UpdateDataPoints(); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e.Key == RotateRadialLabelsPropertyKey) { this.rotateLabels = (bool)e.NewValue; } else if (e.Key == StartAnglePropertyKey) { this.startAngle = (double)e.NewValue; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == RangeExtendDirectionPropertyKey) { this.extendDirection = (NumericalAxisRangeExtendDirection)e.NewValue; } else if (e.Key == DesiredTickCountPropertyKey) { this.userTickCount = e.NewValue == null ? 0 : (int)e.NewValue; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == LabelFormatPropertyKey) { this.labelFormat = (string)e.NewValue; } else if (e.Key == LabelFitModePropertyKey) { this.labelFitMode = (AxisLabelFitMode)e.NewValue; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e.Key == AnglePropertyKey) { this.angle = (double)e.NewValue; } else if (e.Key == ValuePropertyKey) { this.value = (double)e.NewValue; this.isEmpty = DataPoint.CheckIsEmpty(this.value); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e.Key == LabelPropertyKey) { this.label = e.NewValue; } else if (e.Key == IsSelectedPropertyKey) { this.isSelected = (bool)e.NewValue; this.NotifySelectionChanged(); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local values first and then call base to raise the PropertyChanged event (if needed) if (e.Key == XValuePropertyKey) { this.xValue = (double)e.NewValue; } else if (e.Key == YValuePropertyKey) { this.yValue = (double)e.NewValue; this.isEmpty = DataPoint.CheckIsEmpty(this.yValue); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e.Key == HighPropertyKey) { this.high = (double)e.NewValue; this.isEmpty = false; } else if (e.Key == LowPropertyKey) { this.low = (double)e.NewValue; this.isEmpty = false; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == ValuePropertyKey) { this.value = (double)e.NewValue; this.isEmpty = DataPoint.CheckIsEmpty(this.value); // check whether the default label is used if (this.label == null) { this.RaisePropertyChanged(null, DataPoint.LabelPropertyKey); } } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local values first and then call base to raise the PropertyChanged event (if needed) if (e.Key == GapLengthPropertyKey) { this.gapLength = (decimal)((double)e.NewValue); } else if (e.Key == PlotModePropertyKey) { this.plotMode = (AxisPlotMode)e.NewValue; } else if (e.Key == MaximumTicksPropertyKey) { this.maxTickCount = (int)e.NewValue; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { if (e != null && e.Key == AutoGenerateColumnsPropertyKey) { this.areColumnsGenerated = false; this.RefreshLayout(); } else if (e != null && e.Key == RowHeightPropertyKey) { this.rowHeightIsNaN = double.IsNaN((double)e.NewValue); } else if (e != null && e.Key == FrozenColumnCountPropertyKey) { this.GridView.UpdateService.RegisterUpdate((int)UpdateFlags.AffectsContent); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == FirstAxisPropertyKey) { this.firstAxis = (AxisModel)e.NewValue; this.OnFirstAxisChanged(); } else if (e.Key == SecondAxisPropertyKey) { this.secondAxis = (AxisModel)e.NewValue; this.OnSecondAxisChanged(); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == FromPropertyKey) { this.from = e.NewValue; this.UpdateFirstPlot(); } else if (e.Key == ToPropertyKey) { this.to = e.NewValue; this.UpdateSecondPlot(); } base.OnPropertyChanged(e); }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { // update local value first and then call base to raise the PropertyChanged event (if needed) if (e.Key == HighPropertyKey) { this.high = (double)e.NewValue; } else if (e.Key == LowPropertyKey) { this.low = (double)e.NewValue; } else if (e.Key == OpenPropertyKey) { this.open = (double)e.NewValue; } else if (e.Key == ClosePropertyKey) { this.close = (double)e.NewValue; } base.OnPropertyChanged(e); }
internal override void OnPropertyChanging(RadPropertyEventArgs e) { base.OnPropertyChanging(e); if (e.Key == IsBlackoutPropertyKey && e.NewValue != null) { bool isBlackout = (bool)e.NewValue; if (isBlackout && this.IsSelected) { this.IsSelected = false; } } else if (e.Key == IsSelectedPropertyKey && e.NewValue != null) { bool isSelected = (bool)e.NewValue; if (isSelected && this.IsBlackout) { // Calendar cell cannot be marked as blackout and selected at the same time e.Cancel = true; } } }
internal override void OnPropertyChanged(RadPropertyEventArgs e) { base.OnPropertyChanged(e); if (e == null) { return; } if (e.Key == MinimumPropertyKey) { this.minimumCache = (double)e.NewValue; this.UpdateTickFrequency(); this.ResetTicks(); this.ResetLabels(); } else if (e.Key == MaximumPropertyKey) { this.maximumCache = (double)e.NewValue; this.UpdateTickFrequency(); this.ResetTicks(); this.ResetLabels(); } else if (e.Key == TickFrequencyPropertyKey) { this.tickFrequencyCache = (double)e.NewValue; this.UpdateTickFrequency(); this.ResetTicks(); } else if (e.Key == LabelFormatPropertyKey) { this.labelFormatCache = (string)e.NewValue; this.ResetLabels(); } else if (e.Key == LineThicknessPropertyKey) { this.lineThicknessCache = (double)e.NewValue; } else if (e.Key == TickPlacementPropertyKey) { this.tickPlacementCache = (ScaleElementPlacement)e.NewValue; this.ResetTicks(); } else if (e.Key == TickThicknessPropertyKey) { this.tickThicknessCache = (double)e.NewValue; } else if (e.Key == TickLengthPropertyKey) { this.tickLengthCache = (double)e.NewValue; } else if (e.Key == LabelPlacementPropertyKey) { this.labelPlacementCache = (ScaleElementPlacement)e.NewValue; this.ResetLabels(); } else if (e.Key == OrientationPropertyKey) { this.orientationCache = (Orientation)e.NewValue; this.UpdateLayoutStrategy(); } }