protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("Focused", (Condition) new SimpleCondition(RadElement.IsFocusedProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new SimpleCondition(RadElement.IsMouseOverProperty, (object)true));
            CompositeStateNode compositeStateNode = new CompositeStateNode("TreeViewElement states");

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     compositeStateNode = new CompositeStateNode("ExpanderItemStates");
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("IsExpanded", (Condition) new SimpleCondition(ExpanderItem.ExpandedProperty, (object)true));
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("IsRightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     selectedComposite = new CompositeStateNode("Selected");
            StateNodeWithCondition isSelected        = new StateNodeWithCondition("Selected", new SimpleCondition(RadMenuItemBase.SelectedProperty, true));

            selectedComposite.AddState(isSelected);
            StateNodeWithCondition isPopupShown = new StateNodeWithCondition("IsPopupShown", new SimpleCondition(RadMenuItemBase.IsPopupShownProperty, true));

            selectedComposite.AddState(isPopupShown);
            return(selectedComposite);
        }
Пример #4
0
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode baseStates = new CompositeStateNode("Base States");
            StateNodeBase      mouseOver  = new StateNodeWithCondition("MouseOver", new SimpleCondition(RadElement.IsMouseOverProperty, true));
            StateNodeBase      mouseDown  = new StateNodeWithCondition("MouseDown", new SimpleCondition(RadElement.IsMouseDownProperty, true));

            baseStates.AddState(mouseOver);
            baseStates.AddState(mouseDown);

            return(baseStates);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeWithCondition expandedState = new StateNodeWithCondition("IsExpanded", new SimpleCondition(ExpanderItem.ExpandedProperty, true));
            StateNodeWithCondition hotTracking   = new StateNodeWithCondition("HotTracking", new SimpleCondition(TreeNodeElement.HotTrackingProperty, true));

            CompositeStateNode compositeNode = new CompositeStateNode("ExpanderElement States");

            compositeNode.AddState(expandedState);
            compositeNode.AddState(hotTracking);
            return(compositeNode);
        }
Пример #6
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     compositeStateNode = new CompositeStateNode("InnerItem states");
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("IsBackstageMode", (Condition) new SimpleCondition(RadRibbonBarElement.IsBackstageModeProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("RightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            return((StateNodeBase)compositeStateNode);
        }
Пример #7
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     compositeStateNode = new CompositeStateNode("Selected");
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("Selected", (Condition) new SimpleCondition(RadMenuItemBase.SelectedProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("IsPopupShown", (Condition) new SimpleCondition(RadMenuItemBase.IsPopupShownProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            return((StateNodeBase)compositeStateNode);
        }
Пример #8
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Enabled States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("ContainsFocus", (Condition) new SimpleCondition(RadElement.ContainsFocusProperty, (object)true));

            compositeStateNode.AddState(state1);
            StateNodeBase state2 = (StateNodeBase) new StateNodeWithCondition("ContainsMouse", (Condition) new SimpleCondition(RadElement.ContainsMouseProperty, (object)true));

            compositeStateNode.AddState(state2);
            return((StateNodeBase)compositeStateNode);
        }
Пример #9
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase isWelcomePage    = new StateNodeWithCondition("IsWelcomePage", new SimpleCondition(BaseWizardElement.IsWelcomePageProperty, true));
            StateNodeBase isCompletionPage = new StateNodeWithCondition("IsCompletionPage", new SimpleCondition(BaseWizardElement.IsCompletionPageProperty, true));

            CompositeStateNode all = new CompositeStateNode("all states");

            all.AddState(isWelcomePage);
            all.AddState(isCompletionPage);
            return(all);
        }
Пример #10
0
            protected override StateNodeBase CreateSpecificStates()
            {
                StateNodeWithCondition overflowedState     = new StateNodeWithCondition("HasOverflowedItems", new SimpleCondition(RadCommandBarOverflowButton.HasOverflowedItemsProperty, true));
                StateNodeWithCondition dropDownOpenedState = new StateNodeWithCondition("IsDropDownShown", new SimpleCondition(RadDropDownButtonElement.IsDropDownShownProperty, true));
                CompositeStateNode     all = new CompositeStateNode("command bar overflow button states");

                all.AddState(overflowedState);
                all.AddState(dropDownOpenedState);

                return(all);
            }
Пример #11
0
            protected override StateNodeBase CreateSpecificStates()
            {
                CompositeStateNode     compositeStateNode = new CompositeStateNode("SeparatorStates");
                StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("HorizontalOrientation", (Condition) new SimpleCondition(RibbonBarGroupSeparator.OrientationProperty, (object)Orientation.Horizontal));
                StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("VerticalOrientation", (Condition) new SimpleCondition(RibbonBarGroupSeparator.OrientationProperty, (object)Orientation.Vertical));

                nodeWithCondition1.FalseStateLink = (StateNodeBase)nodeWithCondition2;
                compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
                compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
                return((StateNodeBase)compositeStateNode);
            }
Пример #12
0
            protected override StateNodeBase CreateSpecificStates()
            {
                CompositeStateNode     compositeNode       = new CompositeStateNode("SeparatorStates");
                StateNodeWithCondition stateNodeHorizontal = new StateNodeWithCondition("HorizontalOrientation", new SimpleCondition(RibbonBarGroupSeparator.OrientationProperty, Orientation.Horizontal));
                StateNodeWithCondition stateNodeVertical   = new StateNodeWithCondition("VerticalOrientation", new SimpleCondition(RibbonBarGroupSeparator.OrientationProperty, Orientation.Vertical));

                stateNodeHorizontal.FalseStateLink = stateNodeVertical;
                compositeNode.AddState(stateNodeHorizontal);
                compositeNode.AddState(stateNodeVertical);
                return(compositeNode);
            }
Пример #13
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeWithCondition selected = new StateNodeWithCondition("Selected", new SimpleCondition(RadListBoxItem.SelectedProperty, true));
            StateNodeWithCondition active   = new StateNodeWithCondition("Active", new SimpleCondition(RadListBoxItem.ActiveProperty, true));

            CompositeStateNode all = new CompositeStateNode("listbox item states");

            all.AddState(selected);
            all.AddState(active);
            return(all);
        }
Пример #14
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeWithCondition isVertical = new StateNodeWithCondition("IsVertical",
                                                                           new SimpleCondition(RadWaitingBarElement.IsVerticalProperty, true));

            CompositeStateNode all = new CompositeStateNode("waitingbar item states");

            all.AddState(isVertical);

            return(all);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     compositeStateNode = new CompositeStateNode("PropertyValueElement element states");
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("IsModified", (Condition) new SimpleCondition(PropertyGridValueElement.IsModifiedProperty, (object)true));
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("ContainsError", (Condition) new SimpleCondition(PropertyGridValueElement.ContainsErrorProperty, (object)true));
            StateNodeWithCondition nodeWithCondition3 = new StateNodeWithCondition("IsRightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition3);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode compositeNode = new CompositeStateNode("PropertyValueElement element states");

            StateNodeWithCondition modifiedState = new StateNodeWithCondition("IsModified", new SimpleCondition(PropertyGridValueElement.IsModifiedProperty, true));
            StateNodeWithCondition errorState    = new StateNodeWithCondition("ContainsError", new SimpleCondition(PropertyGridValueElement.ContainsErrorProperty, true));

            compositeNode.AddState(modifiedState);
            compositeNode.AddState(errorState);

            return(compositeNode);
        }
Пример #17
0
        protected virtual StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Mouse states");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new SimpleCondition(RadElement.IsMouseOverProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("MouseDown", (Condition) new SimpleCondition(RadElement.IsMouseDownProperty, (object)true));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("ContainsMouse", (Condition) new SimpleCondition(RadElement.ContainsMouseProperty, (object)true));

            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            return((StateNodeBase)compositeStateNode);
        }
Пример #18
0
        public virtual StateNodeBase CreateRootState()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("all states");

            compositeStateNode.AddState(this.CreateEnabledStates());
            compositeStateNode.AddState(this.CreateSpecificStates());
            StateNodeWithCondition nodeWithCondition = new StateNodeWithCondition("Enabled", (Condition) new SimpleCondition(RadElement.EnabledProperty, (object)true));

            nodeWithCondition.TrueStateLink  = (StateNodeBase)compositeStateNode;
            nodeWithCondition.FalseStateLink = (StateNodeBase) new StatePlaceholderNode("Disabled");
            return((StateNodeBase)nodeWithCondition);
        }
Пример #19
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     compositeStateNode = new CompositeStateNode("ExpanderItemStates");
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("IsExpanded", (Condition) new SimpleCondition(ExpanderItem.ExpandedProperty, (object)true));
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("IsSelected", (Condition) new SimpleCondition(TreeNodeExpanderItem.IsSelectedProperty, (object)true));
            StateNodeWithCondition nodeWithCondition3 = new StateNodeWithCondition("HotTracking", (Condition) new SimpleCondition(TreeNodeExpanderItem.HotTrackingProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition3);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            return((StateNodeBase)compositeStateNode);
        }
Пример #20
0
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Base States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new SimpleCondition(RadElement.IsMouseOverProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("MouseDown", (Condition) new SimpleCondition(RadElement.IsMouseDownProperty, (object)true));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("Selected", (Condition) new SimpleCondition(RadPageViewButtonElement.IsSelectedProperty, (object)true));

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            return((StateNodeBase)compositeStateNode);
        }
Пример #21
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode compositeNode = (CompositeStateNode)base.CreateSpecificStates();

            StateNodeWithCondition childState    = new StateNodeWithCondition("IsChildItem", new SimpleCondition(PropertyGridItemElement.IsChildItemProperty, true));
            StateNodeWithCondition modifiedState = new StateNodeWithCondition("IsModified", new SimpleCondition(PropertyGridItemElement.IsModifiedProperty, true));

            compositeNode.AddState(childState);
            compositeNode.AddState(modifiedState);

            return(compositeNode);
        }
Пример #22
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeWithCondition currentState = new StateNodeWithCondition("Current", new SimpleCondition(DetailListViewCellElement.CurrentProperty, true));
            StateNodeWithCondition sortedState  = new StateNodeWithCondition("IsSorted", new SimpleCondition(DetailListViewCellElement.IsSortedProperty, true));

            CompositeStateNode all = new CompositeStateNode("ListViewCellElement states");

            all.AddState(currentState);
            all.AddState(sortedState);

            return(all);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     compositeStateNode = new CompositeStateNode("Header element states");
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("IsInEditMode", (Condition) new SimpleCondition(PropertyGridRowHeaderElement.IsInEditModeProperty, (object)true));
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("IsRootItemWithChildren", (Condition) new SimpleCondition(PropertyGridRowHeaderElement.IsRootItemWithChildrenProperty, (object)true));
            StateNodeWithCondition nodeWithCondition3 = new StateNodeWithCondition("IsRightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition3);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode compositeNode = new CompositeStateNode("Header element states");

            StateNodeWithCondition isInEditModeState = new StateNodeWithCondition("IsInEditMode", new SimpleCondition(PropertyGridRowHeaderElement.IsInEditModeProperty, true));
            StateNodeWithCondition hasChildrenState  = new StateNodeWithCondition("IsRootItemWithChildren", new SimpleCondition(PropertyGridRowHeaderElement.IsRootItemWithChildrenProperty, true));

            compositeNode.AddState(isInEditModeState);
            compositeNode.AddState(hasChildrenState);

            return(compositeNode);
        }
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Base States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("IsVertical", (Condition) new SimpleCondition(SplitContainerElement.IsVerticalProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("EnableCollapsing", (Condition) new SimpleCondition(SplitContainerElement.EnableCollapsingProperty, (object)false));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("UseSplitterButtons", (Condition) new SimpleCondition(SplitContainerElement.UseSplitterButtonsProperty, (object)true));

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            return((StateNodeBase)compositeStateNode);
        }
Пример #26
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     nodes     = new CompositeStateNode("QAToolbar states");
            StateNodeWithCondition stateNode = new StateNodeWithCondition("IsBelowRibbon", new SimpleCondition(RadRibbonBarElement.QuickAccessToolbarBelowRibbonProperty, true));

            nodes.AddState(stateNode);
            stateNode = new StateNodeWithCondition("IsBackstageMode", new SimpleCondition(RadRibbonBarElement.IsBackstageModeProperty, true));
            nodes.AddState(stateNode);
            stateNode = new StateNodeWithCondition("RightToLeft", new SimpleCondition(RadRibbonBarElement.RightToLeftProperty, true));
            nodes.AddState(stateNode);
            return(nodes);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("Pressed", (Condition) new SimpleCondition(RadButtonItem.IsPressedProperty, (object)true));

            nodeWithCondition1.FalseStateLink = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new SimpleCondition(RadElement.IsMouseOverProperty, (object)true));
            CompositeStateNode     compositeStateNode = new CompositeStateNode("ScrollType");
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("ScrollType=Vertical", (Condition) new SimpleCondition(RadScrollBarElement.ScrollTypeProperty, (object)ScrollType.Vertical));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode     specificStates     = (CompositeStateNode)base.CreateSpecificStates();
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("IsChildItem", (Condition) new SimpleCondition(PropertyGridItemElement.IsChildItemProperty, (object)true));
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("IsModified", (Condition) new SimpleCondition(PropertyGridItemElement.IsModifiedProperty, (object)true));
            StateNodeWithCondition nodeWithCondition3 = new StateNodeWithCondition("IsReadOnly", (Condition) new SimpleCondition(PropertyGridItemElement.IsReadOnlyProperty, (object)true));

            specificStates.AddState((StateNodeBase)nodeWithCondition1);
            specificStates.AddState((StateNodeBase)nodeWithCondition2);
            specificStates.AddState((StateNodeBase)nodeWithCondition3);
            return((StateNodeBase)specificStates);
        }
Пример #29
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeWithCondition nodeWithCondition1 = new StateNodeWithCondition("Pressed", (Condition) new SimpleCondition(RadButtonItem.IsPressedProperty, (object)true));

            nodeWithCondition1.FalseStateLink = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new SimpleCondition(RadElement.IsMouseOverProperty, (object)true));
            CompositeStateNode     compositeStateNode = new CompositeStateNode("ToggleState");
            StateNodeWithCondition nodeWithCondition2 = new StateNodeWithCondition("ToggleState=On", (Condition) new SimpleCondition(RadToggleButtonElement.ToggleStateProperty, (object)ToggleState.On));

            compositeStateNode.AddState((StateNodeBase)nodeWithCondition2);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition1);
            nodeWithCondition2.FalseStateLink = (StateNodeBase) new StateNodeWithCondition("ToggleState=Intermediate", (Condition) new SimpleCondition(RadToggleButtonElement.ToggleStateProperty, (object)ToggleState.Indeterminate));
            return((StateNodeBase)compositeStateNode);
        }
Пример #30
0
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode baseStates  = new CompositeStateNode("Base States");
            StateNodeBase      leftAlign   = new StateNodeWithCondition("LeftAlign", new SimpleCondition(RadTabStripElement.TabsPositionProperty, TabPositions.Left));
            StateNodeBase      rightAlign  = new StateNodeWithCondition("RightAlign", new SimpleCondition(RadTabStripElement.TabsPositionProperty, TabPositions.Right));
            StateNodeBase      bottomAlign = new StateNodeWithCondition("BottomAlign", new SimpleCondition(RadTabStripElement.TabsPositionProperty, TabPositions.Bottom));

            baseStates.AddState(leftAlign);
            baseStates.AddState(rightAlign);
            baseStates.AddState(bottomAlign);

            return(baseStates);
        }