예제 #1
0
        protected override ItemStateManagerBase CreateStateManager()
        {
            this.rootState = this.CreateRootState();
            ItemStateManager sm = this.CreateStateManagerCore();

            this.AddDefaultVisibleStates(sm);
            return(sm);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("all states");
            StateNodeBase      state = (StateNodeBase) new StateNodeWithCondition("IsOwnMessage", (Condition) new SimpleCondition(ChatMessageAvatarElement.IsOwnMessageProperty, (object)true));

            compositeStateNode.AddState(state);
            return((StateNodeBase)compositeStateNode);
        }
예제 #3
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase specificStates = base.CreateSpecificStates();
            StateNodeBase state          = (StateNodeBase) new StateNodeWithCondition("Expanded", (Condition) new SimpleCondition(GridGroupExpanderCellElement.ExpandedProperty, (object)true));

            (specificStates as CompositeStateNode)?.AddState(state);
            return(specificStates);
        }
예제 #4
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("States");
            StateNodeBase      state = (StateNodeBase) new StateNodeWithCondition("IsOn", (Condition) new SimpleCondition(RadToggleSwitchElement.IsOnProperty, (object)true));

            compositeStateNode.AddState(state);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode specificStates = (CompositeStateNode)base.CreateSpecificStates();
            StateNodeBase      state          = (StateNodeBase) new StateNodeWithCondition("IsDropDownShown", (Condition) new SimpleCondition(this.dropDownProperty, (object)true));

            specificStates.AddState(state);
            return((StateNodeBase)specificStates);
        }
        protected override StateNodeBase CreateEnabledStates()
        {
            StateNodeBase      state = (StateNodeBase) new StateNodeWithCondition("RightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));
            CompositeStateNode compositeStateNode = new CompositeStateNode("status strip states");

            compositeStateNode.AddState(state);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode specificStates = (CompositeStateNode)base.CreateSpecificStates();
            StateNodeBase      state          = (StateNodeBase) new StateNodeWithCondition("IsFocusedWizardButton", (Condition) new SimpleCondition(this.isFocusedWizardButton, (object)true));

            specificStates.AddState(state);
            return((StateNodeBase)specificStates);
        }
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Base States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("IsVertical", (Condition) new SimpleCondition(SplitterElementLayout.IsVerticalProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("UseSplitterButtons", (Condition) new SimpleCondition(SplitterElementLayout.UseSplitterButtonsProperty, (object)true));

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            return((StateNodeBase)compositeStateNode);
        }
예제 #9
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase      state1         = (StateNodeBase) new StateNodeWithCondition("IsInEditMode", (Condition) new SimpleCondition(GridDataCellElement.IsInEditModeProperty, (object)true));
            StateNodeBase      state2         = (StateNodeBase) new StateNodeWithCondition("IsLastDataCell", (Condition) new SimpleCondition(GridDataCellElement.IsLastDataCellProperty, (object)true));
            CompositeStateNode specificStates = (CompositeStateNode)base.CreateSpecificStates();

            specificStates.AddState(state1);
            specificStates.AddState(state2);
            return((StateNodeBase)specificStates);
        }
예제 #10
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("IsWelcomePage", (Condition) new SimpleCondition(BaseWizardElement.IsWelcomePageProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("IsCompletionPage", (Condition) new SimpleCondition(BaseWizardElement.IsCompletionPageProperty, (object)true));
            CompositeStateNode compositeStateNode = new CompositeStateNode("all states");

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            return((StateNodeBase)compositeStateNode);
        }
        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);
        }
예제 #12
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);
        }
예제 #13
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);
        }
예제 #14
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);
        }
예제 #15
0
        protected override StateNodeBase CreateSpecificStates()
        {
            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("Pressed", (Condition) new SimpleCondition(RadButtonItem.IsPressedProperty, (object)true));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("IsDefault", (Condition) new SimpleCondition(RadButtonItem.IsDefaultProperty, (object)true));

            compositeStateNode.AddState(state4);
            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            return((StateNodeBase)compositeStateNode);
        }
예제 #16
0
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Mouse states");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new ComplexCondition((Condition) new SimpleCondition(RadElement.IsMouseOverProperty, (object)true), BinaryOperator.OrOperator, (Condition) new SimpleCondition(BackstageButtonItem.IsCurrentProperty, (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));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("RightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));

            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state4);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Base States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("LeftAlign", (Condition) new SimpleCondition(RadPageViewStripElement.StripAlignmentProperty, (object)StripViewAlignment.Left));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("RightAlign", (Condition) new SimpleCondition(RadPageViewStripElement.StripAlignmentProperty, (object)StripViewAlignment.Right));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("BottomAlign", (Condition) new SimpleCondition(RadPageViewStripElement.StripAlignmentProperty, (object)StripViewAlignment.Bottom));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("RightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state4);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateEnabledStates()
        {
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("IsSelected", (Condition) new SimpleCondition(GridRowElement.IsSelectedProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("IsCurrent", (Condition) new SimpleCondition(GridRowElement.IsCurrentProperty, (object)true));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("HotTracking", (Condition) new SimpleCondition(GridRowElement.HotTrackingProperty, (object)true));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("ContainsCurrentCell", (Condition) new SimpleCondition(GridRowElement.ContainsCurrentCellProperty, (object)true));
            StateNodeBase      state5             = (StateNodeBase) new StateNodeWithCondition("ContainsSelectedCells", (Condition) new SimpleCondition(GridRowElement.ContainsSelectedCellsProperty, (object)true));
            CompositeStateNode compositeStateNode = new CompositeStateNode("row element states");

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state4);
            compositeStateNode.AddState(state5);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Base States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("Selected", (Condition) new SimpleCondition(RadPageViewItem.IsSelectedProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("Pinned", (Condition) new SimpleCondition(RadPageViewItem.IsPinnedProperty, (object)true));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new SimpleCondition(RadElement.IsMouseOverProperty, (object)true));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("MouseDown", (Condition) new SimpleCondition(RadElement.IsMouseDownProperty, (object)true));
            StateNodeBase      state5             = (StateNodeBase) new StateNodeWithCondition("Preview", (Condition) new SimpleCondition(RadPageViewItem.IsPreviewProperty, (object)true));
            StateNodeBase      state6             = (StateNodeBase) new StateNodeWithCondition("RightToLeft", (Condition) new SimpleCondition(RadElement.RightToLeftProperty, (object)true));

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state4);
            compositeStateNode.AddState(state5);
            compositeStateNode.AddState(state6);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateEnabledStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("Base States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("IsVertical", (Condition) new SimpleCondition(SplitterElement.IsVerticalProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("IsCollapsed", (Condition) new SimpleCondition(SplitterElement.IsCollapsedProperty, (object)true));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("LeftAlignment", (Condition) new SimpleCondition(SplitterElement.SplitterAlignmentProperty, (object)RadDirection.Left));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("RightAlignment", (Condition) new SimpleCondition(SplitterElement.SplitterAlignmentProperty, (object)RadDirection.Right));
            StateNodeBase      state5             = (StateNodeBase) new StateNodeWithCondition("UpAlignment", (Condition) new SimpleCondition(SplitterElement.SplitterAlignmentProperty, (object)RadDirection.Up));
            StateNodeBase      state6             = (StateNodeBase) new StateNodeWithCondition("DownAlignment", (Condition) new SimpleCondition(SplitterElement.SplitterAlignmentProperty, (object)RadDirection.Down));

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state4);
            compositeStateNode.AddState(state5);
            compositeStateNode.AddState(state6);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase          state1             = (StateNodeBase) new StateNodeWithCondition("IsRootNode", (Condition) new SimpleCondition(TreeNodeImageElement.IsRootNodeProperty, (object)true));
            StateNodeBase          state2             = (StateNodeBase) new StateNodeWithCondition("HasChildren", (Condition) new SimpleCondition(TreeNodeImageElement.HasChildrenProperty, (object)true));
            StateNodeBase          state3             = (StateNodeBase) new StateNodeWithCondition("IsSelected", (Condition) new SimpleCondition(TreeNodeImageElement.IsSelectedProperty, (object)true));
            StateNodeBase          state4             = (StateNodeBase) new StateNodeWithCondition("IsCurrent", (Condition) new SimpleCondition(TreeNodeImageElement.IsCurrentProperty, (object)true));
            StateNodeBase          state5             = (StateNodeBase) new StateNodeWithCondition("IsExpanded", (Condition) new SimpleCondition(TreeNodeImageElement.IsExpandedProperty, (object)true));
            StateNodeWithCondition nodeWithCondition  = new StateNodeWithCondition("HotTracking", (Condition) new SimpleCondition(TreeNodeImageElement.HotTrackingProperty, (object)true));
            CompositeStateNode     compositeStateNode = new CompositeStateNode("TreeNodeImageElement states");

            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state4);
            compositeStateNode.AddState((StateNodeBase)nodeWithCondition);
            compositeStateNode.AddState(state5);
            return((StateNodeBase)compositeStateNode);
        }
예제 #22
0
        protected override StateNodeBase CreateSpecificStates()
        {
            CompositeStateNode compositeStateNode = new CompositeStateNode("States");
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("LogicalOperator=And", (Condition) new SimpleCondition(DataFilterGroupElement.LogicalOperatorProperty, (object)FilterLogicalOperator.And));

            state1.FalseStateLink = (StateNodeBase) new StateNodeWithCondition("LogicalOperator=Or", (Condition) new SimpleCondition(DataFilterGroupElement.LogicalOperatorProperty, (object)FilterLogicalOperator.Or));
            compositeStateNode.AddState(state1);
            CompositeStateNode specificStates = base.CreateSpecificStates() as CompositeStateNode;

            if (specificStates != null)
            {
                foreach (StateNodeBase state2 in specificStates.States)
                {
                    compositeStateNode.AddState(state2);
                }
            }
            return((StateNodeBase)compositeStateNode);
        }
예제 #23
0
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("IsRootNode", (Condition) new SimpleCondition(TreeNodeElement.IsRootNodeProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("HasChildren", (Condition) new SimpleCondition(TreeNodeElement.HasChildrenProperty, (object)true));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("ControlInactive", (Condition) new SimpleCondition(TreeNodeElement.IsControlInactiveProperty, (object)true));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("FullRowSelect", (Condition) new SimpleCondition(TreeNodeElement.FullRowSelectProperty, (object)true));
            StateNodeBase      state5             = (StateNodeBase) new StateNodeWithCondition("Selected", (Condition) new SimpleCondition(TreeNodeElement.IsSelectedProperty, (object)true));
            StateNodeBase      state6             = (StateNodeBase) new StateNodeWithCondition("Current", (Condition) new SimpleCondition(TreeNodeElement.IsCurrentProperty, (object)true));
            StateNodeBase      state7             = (StateNodeBase) new StateNodeWithCondition("MouseOver", (Condition) new SimpleCondition(TreeNodeElement.HotTrackingProperty, (object)true));
            StateNodeBase      state8             = (StateNodeBase) new StateNodeWithCondition("Expanded", (Condition) new SimpleCondition(TreeNodeElement.IsExpandedProperty, (object)true));
            CompositeStateNode compositeStateNode = new CompositeStateNode("TreeNodeElement states");

            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state4);
            compositeStateNode.AddState(state5);
            compositeStateNode.AddState(state6);
            compositeStateNode.AddState(state7);
            compositeStateNode.AddState(state8);
            return((StateNodeBase)compositeStateNode);
        }
        protected override StateNodeBase CreateSpecificStates()
        {
            StateNodeBase      state1             = (StateNodeBase) new StateNodeWithCondition("IsCurrent", (Condition) new SimpleCondition(GridCellElement.IsCurrentProperty, (object)true));
            StateNodeBase      state2             = (StateNodeBase) new StateNodeWithCondition("IsSelected", (Condition) new SimpleCondition(GridCellElement.IsSelectedProperty, (object)true));
            StateNodeBase      state3             = (StateNodeBase) new StateNodeWithCondition("IsCurrentRow", (Condition) new SimpleCondition(GridCellElement.IsCurrentRowProperty, (object)true));
            StateNodeBase      state4             = (StateNodeBase) new StateNodeWithCondition("IsCurrentColumn", (Condition) new SimpleCondition(GridCellElement.IsCurrentColumnProperty, (object)true));
            StateNodeBase      state5             = (StateNodeBase) new StateNodeWithCondition("IsPinned", (Condition) new SimpleCondition(GridCellElement.IsPinnedProperty, (object)true));
            StateNodeBase      state6             = (StateNodeBase) new StateNodeWithCondition("IsSorted", (Condition) new SimpleCondition(GridCellElement.IsSortedProperty, (object)true));
            StateNodeBase      state7             = (StateNodeBase) new StateNodeWithCondition("HotTracking", (Condition) new SimpleCondition(GridRowElement.HotTrackingProperty, (object)true));
            StateNodeBase      state8             = (StateNodeBase) new StateNodeWithCondition("IsRowSelected", (Condition) new SimpleCondition(GridRowElement.IsSelectedProperty, (object)true));
            CompositeStateNode compositeStateNode = new CompositeStateNode("all states");

            compositeStateNode.AddState(state8);
            compositeStateNode.AddState(state3);
            compositeStateNode.AddState(state4);
            compositeStateNode.AddState(state5);
            compositeStateNode.AddState(state6);
            compositeStateNode.AddState(state1);
            compositeStateNode.AddState(state2);
            compositeStateNode.AddState(state7);
            return((StateNodeBase)compositeStateNode);
        }
예제 #25
0
 public CommandBarToggleButtonStateManager(StateNodeBase rootState)
     : base(rootState)
 {
 }
예제 #26
0
 public ToggleSwitchThumbButtonStateManager(StateNodeBase rootState)
     : base(rootState)
 {
 }
예제 #27
0
 public ToggleButtonStateManager(StateNodeBase rootState)
     : base(rootState)
 {
 }
예제 #28
0
 public TreeExpanderStateManager(StateNodeBase rootNode)
     : base(rootNode)
 {
 }
예제 #29
0
 public PropertyGridExpanderStateManager(StateNodeBase rootNode)
     : base(rootNode)
 {
 }