I am attempting to create a radial gauge with 3 Color Range Scales (Red, Yellow, Green) and a needle. I can do it all in the Xaml just fine(not Dynamic enough) but when i attempt to intergrate the data from RIA Services I have some issues.
The Needle is being pulled from RIA Services and i am using Binding this is working.
Now for my Min Max fields on the Scale and the Ranges are where i am running into issues i need to do some math on them in order to get them
The data that i have to deal with is as follows and the customer is not willing to add a min max field to the database.
Database Field / Gauge Item
Actual Value / Needle.Value
Tolerance Value / (Yellow.Max - Yellow.Min)
Target Value / Green.Min
With in these 3 Fields i have the math on how to figure out the other itemes needed. The Issues that i am seeing is that i can't figure out how to get these items to load on runtime of the applicaiton so i placed a button on the project with a launch event to do the gauge configuration(not acceptable to have a button). That works to a point.
The other issues it that i can ususall only get 2 of the 3 color scales to display.