In a C# WPF app, I have coded these pie slices: but it doesn’t actually display red but a gold colour. Now I am told that this is because of Visifire has some bug. Still, is there any way I can display Red. This is important because the nurses have to know that maybe someone’s allegies have not been entered.
if (alrg.Description == "No Allergies")
alrg.Color = new SolidColorBrush(Colors.Red);
else if (alrg.Description == "Unknown")
alrg.Color = new SolidColorBrush(Colors.Yellow);
else if (alrg.Description == "Allergies")
alrg.Color = new SolidColorBrush(Colors.Green);
Surely the Color property on alrg is a Color, not a brush.
If so, your assignment should be alrg.Color = Colors.Red;
Can you post the code for the alrg Class?