private void Window_Loaded(object sender, RoutedEventArgs e) { AdjustSearchBox(); Dispatcher.BeginInvoke(new Action(LoadPackages), DispatcherPriority.Background); }