private void OnMinimizeButtonClick(object sender, RoutedEventArgs e) { // dismiss the popup Popup popupHost = CategoryContainer.GetPopupHost(this); Fx.Assert(popupHost != null, "popupHost should not be null"); if (popupHost != null) { popupHost.IsOpen = false; } }
private void CategoryContainer_Loaded(object sender, RoutedEventArgs e) { IPropertyInspector owningPI = PropertyInspectorHelper.GetOwningPropertyInspectorModel(this); if (owningPI != null) { if (CategoryContainer.GetPopupHost(this) == null) { this.Expanded = owningPI.IsCategoryExpanded(this.Category.CategoryName); } } }