Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Button with explicitly declared Background Brush

<Window x: Class="WpfApplication1.Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     Title="" Height="300" Width="300">     <StackPanel Margin="10 10 10 10">         <Button Width="350" Height="30" Content="Button with explicitly declared Background Brush">             <Button.Background>                 <SolidColorBrush Color="Red" />             </Button.Background>         </Button>     </StackPanel> </Window>