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); }
// 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; }
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(); }
public CategoryContainerItemAutomationPeer( ModelCategoryEntry item, CiderCategoryContainer container, CategoryListAutomationPeer parentAutomationPeer) : base(item, parentAutomationPeer) { _coreLogic = new CategoryContainerAutomationPeer(container, this); _coreLogic.AddFocusEvents(); }
// <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)); }
// 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)); }
public CategoryContainerStandAloneAutomationPeer(CiderCategoryContainer container) : base(container) { _coreLogic = new CategoryContainerAutomationPeer(container, this); _coreLogic.AddFocusEvents(); }
// <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); }
// 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); }