![]()  | 
 
HOW TO: XAML Markup images as background | 
 
    Post Reply  
   | 
  
| Author | |
   
   cpede  
   
   Senior Member  
   Joined: 13 August 2004 Location: Denmark Status: Offline Points: 683  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: HOW TO: XAML Markup images as backgroundPosted: 20 June 2008 at 7:07am  | 
 
| 
   
    
   Is it possible to have an image as a background in Markup and write text on top? 
 
   
  -cpede 
    | 
 |
| 
   
     
     Product: Xtreme ToolkitPro (24.0.0)  
   
  Platform: Windows 10 (x64) Language: Visual Studio 2017 (C++)  | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 20 June 2008 at 1:42pm | 
 
| 
   
    
   yes. Use Grid for example
 
   
  <Grid> 
<Image...> 
<TextBlock ...> 
</Grid> 
    | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
   
   cpede  
   
   Senior Member  
   Joined: 13 August 2004 Location: Denmark Status: Offline Points: 683  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 23 June 2008 at 3:28am | 
 
| 
   
    
   Can the Image be stretched to fit the Cell? Or other attributes?
 
   
  -cpede 
    | 
 |
![]()  | 
 |
   
   Oleg  
   
   Senior Member  
   Joined: 21 May 2003 Location: United States Status: Offline Points: 11234  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 23 June 2008 at 5:40am | 
 
| 
   
    
   Hello,
 
   
  it stretched by default. 
Enter in MarkupPad: 
<Page xmlns='http://schemas.microsoft.com/winfx/2006/xaml/presentation' xmlns:x='http://schemas.microsoft.com/winfx/2006/xaml'> 
   <Grid> <Image Source="file://c:\windows\zapotec.bmp"/> <TextBlock Cursor="Hand" VerticalAlignment="Center" HorizontalAlignment="Center">Enter Text Here</TextBlock> </Grid> </Page>  | 
 |
| 
   
     
     Oleg, Support Team 
   
  CODEJOCK SOFTWARE SOLUTIONS  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |