Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Set BlurBitmapEffect for Button

<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="300">     <UniformGrid Columns="3" Rows="4">         <Button Content="A Button" FontSize="16" Margin="5" MaxHeight="30"/>         <Button Content="A Button" FontSize="16" Margin="5" MaxHeight="30">             <Button.BitmapEffect>                 <BlurBitmapEffect Radius="1" />             </Button.BitmapEffect>         </Button>         <Button Content="A Button" FontSize="16" Margin="5" MaxHeight="30">             <Button.BitmapEffect>                 <BlurBitmapEffect Radius="2" />             </Button.BitmapEffect>         </Button>             </UniformGrid> </Window>