private TextBox FindTextBoxSibling(object sender, string name) { return ((StackPanel)((Button)sender).Parent).FindName(name) as TextBox; } }