siz , Andy и Bodeaker абсолютно правы.
Вот как мне удалось получить текстовое поле выбранного элемента списка, используя его дескриптор.
var container = listboxSaveList.ItemContainerGenerator.ContainerFromItem(listboxSaveList.SelectedItem) as FrameworkElement;
if (container != null)
{
ContentPresenter queueListBoxItemCP = VisualTreeWalker.FindVisualChild<ContentPresenter>(container);
if (queueListBoxItemCP == null)
return;
DataTemplate dataTemplate = queueListBoxItemCP.ContentTemplate;
TextBox tbxTitle = (TextBox)dataTemplate.FindName("tbxTitle", queueListBoxItemCP);
tbxTitle.Focus();
}
(Примечание. Здесь VisualTreeWalker - это моя собственная оболочка над VisualTreeHelper с различными полезными функциями)