This is a migrated thread and some comments may be shown as answers.

[Solved] How to change the FeatureMeasureBrush color dynamically in C#

1 Answer 55 Views
BulletGraph for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 24 Oct 2012, 08:23 PM
In xaml you can set the color of the FeaturedMeasureBrush as follows:
 

    FeaturedMeasureBrush="Blue"

 

How can I change this color in C# dynamically?

1 Answer, 1 is accepted

Sort by
0
John
Top achievements
Rank 1
answered on 25 Oct 2012, 09:09 PM
I found this explanation at the following link:
http://blogs.telerik.com/blogs/posts/12-08-13/introduction-to-radbulletgraph.aspx

Say that the name of the control is "BulletBar"
MainPage.xaml
      <DataVisualization:RadBulletGraph x:Name="BulletBar"...

MainPage.cs

private SolidColorBrush RedBrush = new SolidColorBrush(Windows.UI.Colors.Red);

BulletBar.FeaturedMeasureBrush = RedBrush;

Tags
BulletGraph for XAML
Asked by
John
Top achievements
Rank 1
Answers by
John
Top achievements
Rank 1
Share this question
or