예제 #1
0
        protected override void OnActivated(EventArgs e)
        {
            base.OnActivated(e);

            BlameControl blame = (BlameControl)DataContext;

            Caption.Content = "Line number (1–{0}):".FormatInvariant(blame.TotalLines);

            LineNumber.Text = blame.TopLineNumber.ToString();
            LineNumber.Focus();
            LineNumber.SelectAll();
        }