xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Typography_Samp.Page1"
WindowTitle="Typography Variants Sample">
Typography Variants Sample
this is a test
Normal superscript
subscript
1st
H2
SO4
//File:Window.xaml.cs
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Media;
namespace Typography_Samp
{
public partial class Page1 : Page
{
public void changeArial(object sender, RoutedEventArgs e)
{
tf1.FontFamily = new FontFamily("Arial");
}
public void changePalatino(object sender, RoutedEventArgs e)
{
tf1.FontFamily = new FontFamily("Palatino Linotype");
}
public void changeTimes(object sender, RoutedEventArgs e)
{
tf1.FontFamily = new FontFamily("Times New Roman");
}
public void changeVerdana(object sender, RoutedEventArgs e)
{
tf1.FontFamily = new FontFamily("Verdana");
}
}
}