I'm trying to create a VisualBrush
with a hatched pattern that would fade at the top and bottom margins. While I had no problem with hatch itself:
<VisualBrush x:Key="b1" TileMode="Tile" Viewport="0,0,15,15" ViewportUnits="Absolute" Viewbox="0,0,15,15" ViewboxUnits="Absolute">
<VisualBrush.Visual>
<Canvas>
<Path Data="M 0 15 L 15 0" Stroke="Gray"></Path>
<Path Data="M 0 0 L 15 15" Stroke="Gray"></Path>
</Canvas>
</VisualBrush.Visual>
</VisualBrush>
I don't really see a way to make it fade. Any idea how to do this?
Trying to get a background as per image below.