Esempio n. 1
0
        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;
            }
        }
Esempio n. 2
0
        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);
                }
            }
        }