<ListBox SelectedItem="{Binding SelectedArtikel, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
lbxArtikel.UpdateLayout(); var lbxItem = (ListBoxItem)lbxArtikel .ItemContainerGenerator .ContainerFromItem(lbxArtikel.SelectedItem); lbxItem.Focus();
lbxArtikel.ScrollIntoView(lbxArtikel.SelectedItem)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)