Mega Code Archive

 
Categories / VB.Net / WPF
 

TextBlock Foreground and ImageBrush

<Page  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"     x:Class="Microsoft.Samples.Graphics.UsingImageBrush.TilingExample" >   <Grid Margin="20">     <TextBlock Grid.Row="3" Grid.Column="1"       FontSize="70pt" FontWeight="Bold"  FontFamily="Verdana"       Margin="10">       <TextBlock.Foreground>         <ImageBrush           ImageSource="c:\image.jpg"></ImageBrush>       </TextBlock.Foreground>       Text     </TextBlock>   </Grid> </Page>