예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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;
            }
        }