Click here to Skip to main content
15,897,291 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am want to design a richtextbox which dispalys text, images, controls and anything which can be placed in richtextbox. but I want to define display styles in file (xml maybe), then richtextbox displays its content accroding to the file.

could anyone provide a way to do this or a article about that?
thanks in advance!
Posted

1 solution

To Load the style:
var style = System.Xaml.XamlServices.Load("style1.xaml");

To Save The Style:
 var styleTosave = this.FindResource("ResourceKey");
System.Xaml.XamlServices.Save("style1.xaml",styleTosave);
 
Share this answer
 
v2
Comments
Alimjan Yasin 15-Mar-12 22:22pm    
could you please provide me with a article about that?

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