public override void EndInit() { base.EndInit(); GaugeBase templatedParent = base.TemplatedParent as GaugeBase; if (templatedParent != null) { this.BindToTemplatedParent(StartAngleProperty, RoundGuageBase.StartAngleProperty); this.BindToTemplatedParent(EndAngleProperty, RoundGuageBase.EndAngleProperty); this.BindToTemplatedParent(DesignProperty, Tacho.NeedleDesignProperty); } }
public override void EndInit() { base.EndInit(); GaugeBase templatedParent = base.TemplatedParent as GaugeBase; if (templatedParent != null) { this.BindToTemplatedParent(MinimumProperty, GaugeBase.MinimumProperty); this.BindToTemplatedParent(MaximumProperty, GaugeBase.MaximumProperty); this.BindToTemplatedParent(ValueProperty, GaugeBase.ValueProperty); this.BindToTemplatedParent(OriginProperty, GaugeBase.OriginProperty); } }
public override void EndInit() { base.EndInit(); GaugeBase templatedParent = base.TemplatedParent as GaugeBase; if (templatedParent != null) { this.BindToTemplatedParent(TicksProperty, GaugeBase.TicksProperty); this.BindToTemplatedParent(TickFrequencyProperty, GaugeBase.TickFrequencyProperty); this.BindToTemplatedParent(MinTicksCountProperty, GaugeBase.MinTicksCountProperty); this.BindToTemplatedParent(MinimumProperty, GaugeBase.MinimumProperty); this.BindToTemplatedParent(MaximumProperty, GaugeBase.MaximumProperty); this.BindToTemplatedParent(OriginProperty, GaugeBase.OriginProperty); this.rangeColors = templatedParent.RangeColors; } }