Click here to Skip to main content
15,914,071 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I Have to Read Data From Xml File RichtextBox With Image under image read Some
TextData but Doesnot Show Under image TextData ,How to set Image as a Background.
Please help me..
Posted

1 solution

For add image as Background you can do this (via C#):
C#
ImageBrush img = new ImageBrush();
img.ImageSource = (ImageSource)new ImageSourceConverter().ConvertFromString("Image.jpg");
LayoutRoot.Background = img;


If you want to set background image for RichTextBox, as I know you cannot do that in Silverlight =(
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900