One qestion about yellow text on top of a graduated fill background, using this mask to modulate
I had one question about implementing the following scenario. i.e. yellow text on top of a graduated fill background, using this mask to modulate the opacity. The ideal outlook will be like figure 2 on thiswebsite.
I try to do like this in the window1.xaml.
<TextBlock DockPanel.Dock="Top" FontSize="36" Foreground="Red" Style ="{StaticResource LineGra_Textblock}">
Text....
</TextBlock>
<DrawingBrush Viewbox="0,0,1,1" ViewboxUnits="Absolute"
Viewport="0,0,0.07,0.2" TileMode="Tile">
<DrawingBrush.Drawing>
<GeometryDrawing Brush="HorizontalGradient #f000 #0000">
<GeometryDrawing.Geometry>
<RectangleGeometry Rect="0,0,1,0.6" />
</GeometryDrawing.Geometry>
</GeometryDrawing>
</DrawingBrush.Drawing>
</DrawingBrush>
However, it is said that there is no DrawingBrush. I created the WFP application with the references added in default, shall I miss to add something else?
And I think that I have to set DrawingBrush inside tag <TextBlock>. Is it right?
Thanks in advance,

