public MainWindow() { InitializeComponent(); RadHorizontalBulletGraph horizontalBulletGraph = new RadHorizontalBulletGraph(); horizontalBulletGraph.AutoRange = false; horizontalBulletGraph.Width = 300; horizontalBulletGraph.Height = 60; horizontalBulletGraph.Minimum = 0; horizontalBulletGraph.Maximum = 100; horizontalBulletGraph.FeaturedMeasure = 60d; horizontalBulletGraph.ComparativeMeasure = 65d; horizontalBulletGraph.ProjectedValue = 75d; QualitativeRange range = new QualitativeRange(); range.Value = 50; range.Brush = CombineAlphaAndColorInSolidColorBrush(1, "#A8A8A8"); horizontalBulletGraph.QualitativeRanges.Add(range); QualitativeRange range1 = new QualitativeRange(); range1.Value = 70; range1.Brush = CombineAlphaAndColorInSolidColorBrush(1, "#C6C8C8"); horizontalBulletGraph.QualitativeRanges.Add(range1); QualitativeRange range2 = new QualitativeRange(); range2.Brush = CombineAlphaAndColorInSolidColorBrush(1, "#E8E8E8"); horizontalBulletGraph.QualitativeRanges.Add(range2); this.LayoutRoot.Children.Add(horizontalBulletGraph); }
public MainPage() { InitializeComponent(); RadHorizontalBulletGraph horizontalBulletGraph = new RadHorizontalBulletGraph(); horizontalBulletGraph.AutoRange = false; horizontalBulletGraph.Width = 300; horizontalBulletGraph.Height = 60; horizontalBulletGraph.Minimum = 0; horizontalBulletGraph.Maximum = 100; horizontalBulletGraph.FeaturedMeasure = 60d; horizontalBulletGraph.ComparativeMeasure = 65d; horizontalBulletGraph.ProjectedValue = 75d; QualitativeRange range = new QualitativeRange(); range.Value = 50; range.Brush = CombineAlphaAndColorInSolidColorBrush(1, "#A8A8A8"); horizontalBulletGraph.QualitativeRanges.Add(range); QualitativeRange range1 = new QualitativeRange(); range1.Value = 70; range1.Brush = CombineAlphaAndColorInSolidColorBrush(1, "#C6C8C8"); horizontalBulletGraph.QualitativeRanges.Add(range1); QualitativeRange range2 = new QualitativeRange(); range2.Brush = CombineAlphaAndColorInSolidColorBrush(1, "#E8E8E8"); horizontalBulletGraph.QualitativeRanges.Add(range2); this.LayoutRoot.Children.Add(horizontalBulletGraph); }