示例#1
0
        public ValueBar(ValueBarTemplate template)
            : base(template)
        {
            HasFrame = false;

            MinimumValue = template.MinimumValue;
            MaximumValue = template.MaximumValue;
            CurrentValue = template.StartingValue;

            rangeWidth = this.Size.Width - 2;

            BarPigment = template.BarPigment;

            minimumBGIntensity   = template.MinimumBGIntensity;
            minimumFGIntensity   = template.MinimumFGIntensity;
            CanHaveKeyboardFocus = template.CanHaveKeyboardFocus;
        }
示例#2
0
        public ValueBar(ValueBarTemplate template)
            : base(template)
        {
            HasFrame = false;

            MinimumValue = template.MinimumValue;
            MaximumValue = template.MaximumValue;
            CurrentValue = template.StartingValue;

            rangeWidth = this.Size.Width - 2;

            BarPigment = template.BarPigment;

            minimumBGIntensity = template.MinimumBGIntensity;
            minimumFGIntensity = template.MinimumFGIntensity;
            CanHaveKeyboardFocus = template.CanHaveKeyboardFocus;
        }