Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

fill mode in wpf plot

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?

0 Kudos
Message 1 of 2
(5,414 Views)

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).

~ Paul H
0 Kudos
Message 2 of 2
(5,409 Views)