/// <summary> /// Initializes a new instance of the <see cref="RadialGauge"/> class. /// </summary> public RadialGauge() : base() { InitializeComponent(); Scale = new RadialScale(this); Pointer = new RadialPointer(this, Scale as RadialScale); Label = new RadialLabel(this); Height = 4.0f * Units.Centimeters; Width = 4.0f * Units.Centimeters; semicircleOffsetRatio = type == RadialGaugeType.Semicircle && (position == RadialGaugePosition.Left || position == RadialGaugePosition.Right) ? 1.5f : 1; Type = RadialGaugeType.Circle; Border.Lines = BorderLines.None; }
/// <inheritdoc/> public override void Assign(GaugePointer src) { base.Assign(src); RadialPointer s = src as RadialPointer; }