Beispiel #1
0
 private void FocusApps()
 {
     if (InputBox.IsFocused && AppContainer.Items.Count > 0)
     {
         if (AppContainer.SelectedItem == null)
         {
             AppContainer.Focus();
         }
         else
         {
             var listBoxItem = (ListBoxItem)AppContainer.ItemContainerGenerator.ContainerFromItem(AppContainer.SelectedItem);
             listBoxItem.Focus();
         }
     }
 }