Пример #1
0
        private void CategoryContainer_Loaded(object sender, RoutedEventArgs e)
        {
            IPropertyInspector propertyInspectorModel = PropertyInspectorHelper.GetOwningPropertyInspectorModel((DependencyObject)this);

            if (propertyInspectorModel == null || CategoryContainer.GetPopupHost((DependencyObject)this) != null)
            {
                return;
            }
            this.Category.Expanded = propertyInspectorModel.IsCategoryExpanded(this.Category.get_CategoryName());
        }
Пример #2
0
        private void OnMinimizeButtonClick(object sender, RoutedEventArgs e)
        {
            Popup popupHost = CategoryContainer.GetPopupHost((DependencyObject)this);

            if (popupHost == null)
            {
                return;
            }
            popupHost.IsOpen = false;
        }