private void TxtEditHeader_Loaded(object sender, RoutedEventArgs e) { if (IsEditText) { if (TxtEditHeader.Focus()) { EditHeaderTextSelect(); } } }
private void OnIsEditTextChanged(bool isEditText) { if (isEditText) { TblHeader.Visibility = Visibility.Collapsed; TxtEditHeader.Visibility = Visibility.Visible; if (TxtEditHeader.Focus()) { EditHeaderTextSelect(); } } else { TblHeader.Visibility = Visibility.Visible; TxtEditHeader.Visibility = Visibility.Collapsed; } }