02-21-2014 10:24 AM
In my windows form plot, I needed to fill the area under a plot with different colors depending on the X value. I acheieved this by overriding the FillStyle class. How do I achieve this in WPF?
02-21-2014 01:55 PM
There is no direct equivalent of the FillStyle type in WPF. Instead, you would want to perform the area drawing yourself in a custom renderer. I have attached a simple mockup that changes color based on whether the incoming values are increasing or decreasing (note that the RenderMode on the graph should be set to Vector for the area fill to appear).