I want to draw a polyline in WPF that has a different opacity between its beginning and end. I used LinearGradientBrush for this. However, this does not meet my expectations. The gradient takes into account the position in the bounding box or in the container. Is it possible to have a gradient based on the “length” (between the beginning and the end) of the polyline?
source share