コード例 #1
0
        public CategorySelectionStop(CiderCategoryContainer parent, bool isAdvanced) 
        {

            if (parent == null) 
            {
                throw FxTrace.Exception.ArgumentNull("parent");
            }
            if (parent.Category == null) 
            {
                throw FxTrace.Exception.ArgumentNull("parent.Category");
            }

            _parent = parent;
            _expansionProperty = isAdvanced ? Blend.CategoryContainer.AdvancedSectionPinnedProperty : Blend.CategoryContainer.ExpandedProperty;
            _selectionPath = CategoryContainerSelectionPathInterpreter.Instance.ConstructSelectionPath(parent.Category.CategoryName, isAdvanced);
            _description = isAdvanced ?
                string.Format(
                CultureInfo.CurrentCulture,
                System.Activities.Presentation.Internal.Properties.Resources.PropertyEditing_SelectionStatus_AdvancedCategory,
                parent.Category.CategoryName) :
                string.Format(
                CultureInfo.CurrentCulture,
                System.Activities.Presentation.Internal.Properties.Resources.PropertyEditing_SelectionStatus_Category,
                parent.Category.CategoryName);
        }
コード例 #2
0
 // Private ctor called from two public, static accessors
 private CategoryContainerAutomationPeer(CiderCategoryContainer container, AutomationPeer itemPeer)
 {
     Fx.Assert(container != null, "CategoryContainer not specified.");
     Fx.Assert(itemPeer != null, "CategoryContainerItemAutomationPeer not specified.");
     _container          = container;
     _itemAutomationPeer = itemPeer;
 }
コード例 #3
0
        // Private ctor called from two public, static accessors
        private CategoryContainerAutomationPeer(CiderCategoryContainer container, AutomationPeer itemPeer) 
        {
            Fx.Assert(container != null, "CategoryContainer not specified.");
            Fx.Assert(itemPeer != null, "CategoryContainerItemAutomationPeer not specified.");
            _container = container;
            _itemAutomationPeer = itemPeer;

        }
コード例 #4
0
 public AdvancedCategoryContainerAutomationPeer(CiderCategoryContainer container, Expander expander)
     : base(expander)
 {
     Fx.Assert(container != null, "CategoryContainer not specified.");
     Fx.Assert(expander != null, "Expander not specified.");
     _expander  = expander;
     _container = container;
     AddFocusEvents();
 }
コード例 #5
0
 public CategoryContainerItemAutomationPeer(
     ModelCategoryEntry item,
     CiderCategoryContainer container,
     CategoryListAutomationPeer parentAutomationPeer)
     : base(item, parentAutomationPeer)
 {
     _coreLogic = new CategoryContainerAutomationPeer(container, this);
     _coreLogic.AddFocusEvents();
 }
コード例 #6
0
        public CategorySelectionStop(CiderCategoryContainer parent, bool isAdvanced)
        {
            if (parent == null)
            {
                throw FxTrace.Exception.ArgumentNull("parent");
            }
            if (parent.Category == null)
            {
                throw FxTrace.Exception.ArgumentNull("parent.Category");
            }

            _parent            = parent;
            _expansionProperty = isAdvanced ? Blend.CategoryContainer.AdvancedSectionPinnedProperty : Blend.CategoryContainer.ExpandedProperty;
            _selectionPath     = CategoryContainerSelectionPathInterpreter.Instance.ConstructSelectionPath(parent.Category.CategoryName, isAdvanced);
            _description       = isAdvanced ?
                                 string.Format(
                CultureInfo.CurrentCulture,
                System.Activities.Presentation.Internal.Properties.Resources.PropertyEditing_SelectionStatus_AdvancedCategory,
                parent.Category.CategoryName) :
                                 string.Format(
                CultureInfo.CurrentCulture,
                System.Activities.Presentation.Internal.Properties.Resources.PropertyEditing_SelectionStatus_Category,
                parent.Category.CategoryName);
        }
コード例 #7
0
 // <summary>
 // Creates a CategoryContainerAutomationPeer that can be returned for CategoryContainers
 // belonging to a CategoryList control
 // </summary>
 // <param name="category">CategoryEntry instance used by ItemsControl</param>
 // <param name="container">Container to automate</param>
 // <param name="parentAutomationPeer">Parent AutomationPeer</param>
 // <returns>Instance of CategoryContainerAutomationPeer that can be returned for CategoryContainers
 // belonging to a CategoryList control</returns>
 public static ItemAutomationPeer CreateItemAutomationPeer(ModelCategoryEntry category, CiderCategoryContainer container, CategoryListAutomationPeer parentAutomationPeer)
 {
     return(new CategoryContainerItemAutomationPeer(category, container, parentAutomationPeer));
 }
コード例 #8
0
        // IScrollItemProvider Members

        // <summary>
        // Creates a CategoryContainerAutomationPeer that can be returned directly from
        // the CiderCategoryContainer control itself.
        // </summary>
        // <param name="container">Container to automate</param>
        // <returns>Instance of CategoryContainerAutomationPeer that can be returned directly from
        // the CiderCategoryContainer control itself</returns>
        public static UIElementAutomationPeer CreateStandAloneAutomationPeer(CiderCategoryContainer container)
        {
            return(new CategoryContainerStandAloneAutomationPeer(container));
        }
コード例 #9
0
 public CategoryContainerStandAloneAutomationPeer(CiderCategoryContainer container)
     : base(container)
 {
     _coreLogic = new CategoryContainerAutomationPeer(container, this);
     _coreLogic.AddFocusEvents();
 }
コード例 #10
0
 // <summary>
 // Creates a CategoryContainerAutomationPeer that can be returned for CategoryContainers
 // belonging to a CategoryList control
 // </summary>
 // <param name="category">CategoryEntry instance used by ItemsControl</param>
 // <param name="container">Container to automate</param>
 // <param name="parentAutomationPeer">Parent AutomationPeer</param>
 // <returns>Instance of CategoryContainerAutomationPeer that can be returned for CategoryContainers
 // belonging to a CategoryList control</returns>
 public static ItemAutomationPeer CreateItemAutomationPeer(ModelCategoryEntry category, CiderCategoryContainer container, CategoryListAutomationPeer parentAutomationPeer) 
 {
     return new CategoryContainerItemAutomationPeer(category, container, parentAutomationPeer);
 }
コード例 #11
0
        // IScrollItemProvider Members

        // <summary>
        // Creates a CategoryContainerAutomationPeer that can be returned directly from
        // the CiderCategoryContainer control itself.
        // </summary>
        // <param name="container">Container to automate</param>
        // <returns>Instance of CategoryContainerAutomationPeer that can be returned directly from
        // the CiderCategoryContainer control itself</returns>
        public static UIElementAutomationPeer CreateStandAloneAutomationPeer(CiderCategoryContainer container) 
        {
            return new CategoryContainerStandAloneAutomationPeer(container);
        }
コード例 #12
0
 public CategoryContainerStandAloneAutomationPeer(CiderCategoryContainer container)
     : base(container) 
 {
     _coreLogic = new CategoryContainerAutomationPeer(container, this);
     _coreLogic.AddFocusEvents();
 }
コード例 #13
0
 public AdvancedCategoryContainerAutomationPeer(CiderCategoryContainer container, Expander expander)
     : base(expander) 
 {
     Fx.Assert(container != null, "CategoryContainer not specified.");
     Fx.Assert(expander != null, "Expander not specified.");
     _expander = expander;
     _container = container;
     AddFocusEvents();
 }
コード例 #14
0
 public CategoryContainerItemAutomationPeer(
     ModelCategoryEntry item,
     CiderCategoryContainer container,
     CategoryListAutomationPeer parentAutomationPeer)
     : base(item, parentAutomationPeer) 
 {
     _coreLogic = new CategoryContainerAutomationPeer(container, this);
     _coreLogic.AddFocusEvents();
 }