/// <summary>
        /// Updates the detail pane based on the selected package
        /// </summary>
        private async void UpdateDetailPane()
        {
            var selectedPackage = _packageList.SelectedItem as UiSearchResultPackage;

            if (selectedPackage == null)
            {
                _packageDetail.DataContext = null;
            }
            else
            {
                DetailControlModel newModel;
                if (Target.IsSolution)
                {
                    newModel = new PackageSolutionDetailControlModel(
                        (VsSolution)Target,
                        selectedPackage);
                }
                else
                {
                    newModel = new PackageDetailControlModel(
                        Target,
                        selectedPackage);
                }

                var oldModel = _packageDetail.DataContext as DetailControlModel;
                if (oldModel != null)
                {
                    newModel.Options = oldModel.Options;
                }
                _packageDetail.DataContext = newModel;
                _packageDetail.ScrollToHome();
                await newModel.LoadPackageMetadaAsync();
            }
        }
        /// <summary>
        /// Updates the detail pane based on the selected package
        /// </summary>
        private async void UpdateDetailPane()
        {
            var selectedPackage = _packageList.SelectedItem as UiSearchResultPackage;
            if (selectedPackage == null)
            {
                _packageDetail.DataContext = null;
            }
            else
            {
                DetailControlModel newModel;
                if (Target.IsSolution)
                {
                    newModel = new PackageSolutionDetailControlModel(
                        (VsSolution)Target,
                        selectedPackage);
                }
                else
                {
                    newModel = new PackageDetailControlModel(
                        Target,
                        selectedPackage);
                }

                var oldModel = _packageDetail.DataContext as DetailControlModel;
                if (oldModel != null)
                {
                    newModel.Options = oldModel.Options;
                }
                _packageDetail.DataContext = newModel;
                _packageDetail.ScrollToHome();
                await newModel.LoadPackageMetadaAsync();
            }
        }