How to use OpacityMask to make UIElement partly invisible

<Button HorizontalAlignment=”Stretch” VerticalAlignment=”Stretch” Content=”Button”>
<Button.OpacityMask>
<LinearGradientBrush EndPoint=”0.5,1″ StartPoint=”0.5,0″>
<GradientStop Color=”#FF000000″ Offset=”0″/>
<GradientStop Color=”#FF000000″ Offset=”0.5″/>
<GradientStop Color=”#00000000″ Offset=”0.5″/>
</LinearGradientBrush>
</Button.OpacityMask>
</Button>

Advertisements

~ by Martin on December 16, 2008.

One Response to “How to use OpacityMask to make UIElement partly invisible”

  1. Nice topic u deals.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: