Posts

Showing posts from April, 2013

How to use border with shadow in wpf

Image
Steps: 1)  First create two window form 2)  Nn patent form add one button 3)  Now add border with shadow in this windown <Window x:Class="WpfApplication1.MainWindow"         xmlns=" http://schemas.microsoft.com/winfx/2006/xaml/presentation "         xmlns:x=" http://schemas.microsoft.com/winfx/2006/xaml "         Title="MainWindow" Height="400" Width="1000">     <Grid>         <Button Content="Click to show demo" Height="23" HorizontalAlignment="Left" Margin="318,203,0,0" Name="button1" VerticalAlignment="Top" Width="140" Click="button1_Click" />         <Border x:Name="shadow"             Grid.ColumnSpan="3"             Grid.RowSpan="2"             Background="black"             Opacity="0.36"             Visibility="Collapsed" Loaded="shadow_Loaded" Clip