TextBlock.Foreground and ImageBrush : TextBlock « Windows Presentation Foundation « VB.Net

Home
VB.Net
1.2D
2.Application
3.Class
4.Data Structure
5.Data Types
6.Database ADO.net
7.Development
8.Event
9.File Directory
10.Generics
11.GUI
12.Language Basics
13.LINQ
14.Network Remote
15.Security
16.Thread
17.Windows Presentation Foundation
18.Windows System
19.XML
20.XML LINQ
VB.Net Tutorial
VB.Net by API
VB.Net » Windows Presentation Foundation » TextBlockScreenshots 
TextBlock.Foreground and ImageBrush
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>

   
    
    
    
    
    
    
  
Related examples in the same category
1.Simple TextBlockSimple TextBlock
2.Simple contentSimple content
3.LineBreak inside a TextBlock
4.Semi-Transparent TextBlockSemi-Transparent TextBlock
5.Text decorations: underlineText decorations: underline
6.Text decorations: BaselineText decorations: Baseline
7.Text decorations: StrikethroughText decorations: Strikethrough
8.Text decorations: OverlineText decorations: Overline
9.Text decorations: more than one stylesText decorations: more than one styles
10.Multi-span for TextBlockMulti-span for TextBlock
11.Setting text decorationsSetting text decorations
12.Set pen for TextDecorationsSet pen for TextDecorations
13.TextTrimming for TextBlockTextTrimming for TextBlock
14.Apply Blur Effects on UI Element TextBlockApply Blur Effects on UI Element TextBlock
15.Apply a Glow Effect to Your UI Element TextBlockApply a Glow Effect to Your UI Element TextBlock
16.Layout TextBlock in UniformGridLayout TextBlock in UniformGrid
17.Text as contentText as content
18.Text with mixed contentText with mixed content
19.Whitespace as content and as attributeWhitespace as content and as attribute
20.Preserving whitespace in mixed contentPreserving whitespace in mixed content
21.Nested TextBlockNested TextBlock
22.Enabling hyphenationEnabling hyphenation
23.Positioning a hosted Button element with BaselineAlignment along with textPositioning a hosted Button element with BaselineAlignment along with text
24.Using RenderTransformUsing RenderTransform
25.This is rotating textThis is rotating text
26.TextBox PreviewKeyDownTextBox PreviewKeyDown
27.TextBox KeyDownTextBox KeyDown
28.TextBox PreviewKeyUpTextBox PreviewKeyUp
29.TextBox KeyUpTextBox KeyUp
30.TextBox TextInputTextBox TextInput
31.Handling overflowHandling overflow
32.Use Run the mark underlink TextDecorationsUse Run the mark underlink TextDecorations
33.Simple underline decorationSimple underline decoration
34.Effects of the enumerated values of TextWrapping.Effects of the enumerated values of TextWrapping.
35.Programmatically change the way in which TextBlock is trimmed when it exceeds the outer boundaries of its containing box.Programmatically change the way in which TextBlock is trimmed when it exceeds the outer boundaries of its containing box.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.