Approved
Last Updated: 12 Sep 2018 14:43 by ADMIN
ADMIN
Martin Ivanov
Created on: 12 Sep 2018 14:43
Category: Gauge
Type: Bug Report
1
Gauge: The visual elements generated for the GaugeRange objects are not cleared when you clear the Ranges collection
The visual elements generated for the GaugeRange objects are not cleared when you clear the Ranges collection of the scale. This happens if you call the Clear() method of the Ranges collection.

To work this around you can clear the ranges using the Remove() method instead of clear.

while (scale.Ranges.Count > 0)
{
    scale.Ranges.Remove(scale.Ranges.LastOrDefault());
}
0 comments