or
RadHorizontalBulletGraph bulletGraph =
new
RadHorizontalBulletGraph();
bulletGraph.Height = 20;
bulletGraph.Margin =
new
Thickness(10,5,10,5);
if
(viewCol.Width > 0)
bulletGraph.Width = viewCol.Width;
bulletGraph.Minimum = viewCol.BGMinValue;
bulletGraph.Maximum = viewCol.BGMaxValue;
string
displayValue = GetDisplayVal(dataItem);
bulletGraph.FeaturedMeasure = S.ToDouble(displayValue);
bulletGraph.QuantitativeScaleVisibility = viewCol.BGShowLabels ? Visibility.Visible : Visibility.Collapsed;
QualitativeRange range1 =
new
QualitativeRange();
range1.Value = viewCol.BGRange1;
range1.Brush =
new
SolidColorBrush(S.ColorFromInt(viewCol.BGRange1Color));
bulletGraph.QualitativeRanges.Add(range1);
QualitativeRange range2 =
new
QualitativeRange();
range2.Value = viewCol.BGRange2;
range2.Brush =
new
SolidColorBrush(S.ColorFromInt(viewCol.BGRange2Color));
bulletGraph.QualitativeRanges.Add(range2);
QualitativeRange range3 =
new
QualitativeRange();
range3.Value = viewCol.BGRange3;
range3.Brush =
new
SolidColorBrush(S.ColorFromInt(viewCol.BGRange3Color));
bulletGraph.QualitativeRanges.Add(range3);