private void RenamePL_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { //make the textbox with the playlist name editable PlayListName_TB.IsReadOnly = false; PlayListName_TB.IsHitTestVisible = true; PlayListName_TB.BorderThickness = new Thickness(1); PlayListName_TB.CaretBrush = Brushes.White; PlayListName_TB.CaretIndex = PlayListName_TB.Text.Length; PlayListName_TB.Focus(); SettPopup.IsOpen = false; }
private void RenamePL_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { //делаем текстбокс с названием плейлиста редактируемым PlayListName_TB.IsReadOnly = false; PlayListName_TB.IsHitTestVisible = true; PlayListName_TB.BorderThickness = new Thickness(1); PlayListName_TB.CaretBrush = Brushes.White; PlayListName_TB.CaretIndex = PlayListName_TB.Text.Length; PlayListName_TB.Focus(); SettPopup.IsOpen = false; }