using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Documents;
using System.Windows.Shapes;
namespace SayHello
{
public class FormatTheText:Window{
[STAThread]
public static void Main()
{
Application app=new Application();
app.Run(new FormatTheText());
}
public FormatTheText()
{
Title = "Format The Text";
TextBlock txt=new TextBlock();
txt.FontSize = 32;
txt.Inlines.Add("this is some");
txt.Inlines.Add(new Italic(new Run("italic")));
txt.Inlines.Add("text, and this is some");
txt.Inlines.Add(new Bold(new Run("blod")));
txt.Inlines.Add(" text, and let's cap it off with some");
txt.Inlines.Add(new Bold(new Italic(new Run("blod italic"))));
txt.Inlines.Add("text.");
txt.TextWrapping=TextWrapping.Wrap;
Content = txt;
}
}
}