Exemplo n.º 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;
        }
Exemplo n.º 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;
        }