OpacityMask
<Image Source="source-image.jpg"> <Image.OpacityMask> <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5" > <GradientStop Offset="0.0" Color="#00000000" /> <GradientStop Offset="1.0" Color="#FF000000" /> </LinearGradientBrush> </Image.OpacityMask> </Image>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)