private void OnVisibleChangedShowTransaction(object sender, DependencyPropertyChangedEventArgs e) { IsVisibleChanged -= OnVisibleChangedShowTransaction; this.TransactionListBox.UpdateLayout(); this.TransactionListBox.ScrollIntoView(Controller.ViewModel.SelectedRow); } }