using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Net;
using
System.Windows;
using
System.Windows.Controls;
using
System.Windows.Documents;
using
System.Windows.Input;
using
System.Windows.Media;
using
System.Windows.Media.Animation;
using
System.Windows.Shapes;
namespace
SilverlightApplication1
{
public partial
class MainPage
: UserControl
{
public MainPage()
{
InitializeComponent();
}
private void
textBox1_TextChanged(object sender,
TextChangedEventArgs e)
{
label1.FontSize = Convert.ToInt16(textBox1.Text);
}
private void
button1_Click(object sender,
RoutedEventArgs e)
{
label1.FontSize = 8;
}
private void
button2_Click(object sender,
RoutedEventArgs e)
{
label1.FontSize = 12;
}
private void
button3_Click(object sender,
RoutedEventArgs e)
{
label1.FontSize = 16;
}
}
} |