private void xTxtDirichletAlpha_TextChanged(object sender, TextChangedEventArgs e) { double newValue; if (double.TryParse(xTxtDirichletAlpha.Text, out newValue)) { _dirichletAlpha = newValue; } }