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 inimesitaja : UserControl { public inimesitaja() { InitializeComponent(); } public string eesnimi{ get { return tekst1.Text; } set { if (value == "kurat") { tekst1.Text = "vanapagan"; } else { tekst1.Text = value; } ellips1.Width = tekst1.Text.Length * 8; } } private void ellips1_MouseEnter(object sender, MouseEventArgs e) { liigutus.Begin(); } } }