protected void Page_Load(object sender, EventArgs e)
        {
            IStateIndicatorGauge sGauge    = ASPxGaugeControl1.Gauges[0] as IStateIndicatorGauge;
            IndicatorStateWeb    plusState = sGauge.Indicators["RoadwayMarkers"].States["NoWay"] as IndicatorStateWeb;

            CreateCustomIndicator(plusState.Shape as ComplexShape);
        }
Beispiel #2
0
        public override void SetupGaugeCore(ASPxGaugeControl gaugeContainer)
        {
            StateIndicatorGauge     siGauge        = (StateIndicatorGauge)gaugeContainer.AddGauge(GaugeType.StateIndicator);
            StateIndicatorComponent stateIndicator = siGauge.AddIndicator();

            stateIndicator.BeginUpdate();
            BindableComponent = stateIndicator;
            StateIndicatorShapeType[] shapes = new StateIndicatorShapeType[] {
                StateIndicatorShapeType.TrafficLight2,
                StateIndicatorShapeType.TrafficLight3,
                StateIndicatorShapeType.TrafficLight4,
            };
            stateIndicator.States.Clear();
            foreach (StateIndicatorShapeType shape in shapes)
            {
                IndicatorStateWeb state = new IndicatorStateWeb(shape);
                stateIndicator.States.Add(state);
            }
            stateIndicator.Size = new SizeF(100, 200);
        }