public RadialGaugeNeedle(RadRadialGaugeElement owner) : this() { this.owner = owner; this.owner.ValueChanged -= new EventHandler(this.owner_ValueChanged); this.owner.ValueChanged += new EventHandler(this.owner_ValueChanged); this.Shape = (ElementShape) new GaugeVisualElement.GaugeShape((GaugeVisualElement)this); }
public GaugeBackgroundShape( RadRadialGaugeElement owner, double extrusionPercentage, double radiusOffset) { this.owner = owner; this.extrusionPercentage = extrusionPercentage; this.radiusOffset = radiusOffset; }
protected override void OnParentChanged(RadElement previousParent) { base.OnParentChanged(previousParent); if (this.Parent == null) { return; } this.owner = (RadRadialGaugeElement)this.Parent; this.Shape = (ElementShape) new GaugeVisualElement.GaugeShape((GaugeVisualElement)this); }
protected override void OnParentChanged(RadElement previousParent) { base.OnParentChanged(previousParent); if (this.Parent == null) { return; } this.owner = (RadRadialGaugeElement)this.Parent; this.Shape = (ElementShape) new RadialGaugeBackground.GaugeBackgroundShape(this.owner, this.extrusionPercentage, this.radiusOffset); }
public RadialGaugeBackground(RadRadialGaugeElement owner) : this() { this.owner = owner; this.NumberOfColors = 3; this.GradientStyle = GradientStyles.Linear; this.BackColor = Color.LightYellow; this.BackColor2 = Color.Yellow; this.BackColor3 = Color.DarkMagenta; this.Shape = (ElementShape) new RadialGaugeBackground.GaugeBackgroundShape(owner, this.extrusionPercentage, this.radiusOffset); this.ZIndex = 1000; }
protected override void OnParentChanged(RadElement previousParent) { base.OnParentChanged(previousParent); if (this.Parent == null) { return; } this.owner = (RadRadialGaugeElement)this.Parent; this.owner.ValueChanged -= new EventHandler(this.owner_ValueChanged); this.owner.ValueChanged += new EventHandler(this.owner_ValueChanged); this.OnOwnerValueChanged(); this.Shape = (ElementShape) new GaugeVisualElement.GaugeShape((GaugeVisualElement)this); }
public RadialGaugeArc( double width, double rangeStart, double rangeEnd, RadRadialGaugeElement owner) : this() { this.width = width; this.rangeStart = rangeStart; this.rangeEnd = rangeEnd; this.owner = owner; this.Shape = (ElementShape) new GaugeVisualElement.GaugeShape((GaugeVisualElement)this); }
public RadialGaugeTicks(RadRadialGaugeElement owner) : this() { this.owner = owner; this.Shape = (ElementShape) new GaugeVisualElement.GaugeShape((GaugeVisualElement)this); }
protected override void CreateChildItems(RadElement parent) { this.gaugeElement = this.CreateGaugeElement(); parent.Children.Add((RadElement)this.gaugeElement); }