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; }