Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

You cannot use TextBox and Image at the same time for Button Content

<Window   x:Class="Containment.Window1"   xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   Title="Containment">      <Button>     <Button.Content>       <TextBlock>Tom: </TextBlock>       <Image Source="c:image.png" />     </Button.Content>   </Button>    </Window>