Mega Code Archive

 
Categories / C# / WPF
 

Set opacity for Image

<Window x:Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="WPF" Height="300" Width="400">     <StackPanel Orientation="Horizontal">         <Image Margin="-30" Opacity=".7" Source="c:\image.gif"                 ToolTip="Middle Image" Width="150" />     </StackPanel> </Window>