4 instantiations of Transition
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (1)
124
Transition newTransition = new
Transition
() { DisplayName = StateContainerEditor.GenerateTransitionName(stateMachineModelItem) };
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (2)
2371
Transition transition = new
Transition
2632
droppedModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(new
Transition
()
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
453
ModelItem newTransitionItem = this.parentStateModelItem.Properties[StateDesigner.TransitionsPropertyName].Collection.Add(new
Transition
()
59 references to Transition
System.Activities (18)
System\Activities\Statements\InternalState.cs (3)
132
public Collection<
Transition
> Transitions
389
static void AddTransitionData(NativeActivityMetadata metadata, InternalTransition internalTransition,
Transition
transition)
816
Transition
transition = this.Transitions[i];
System\Activities\Statements\State.cs (3)
22
Collection<
Transition
> transitions;
63
public Collection<
Transition
> Transitions
69
this.transitions = new ValidatingCollection<
Transition
>
System\Activities\Statements\StateMachine.cs (12)
246
Transition
transition = state.Transitions[i];
277
foreach (
Transition
transition in state.Transitions)
283
static void ClearTransition(
Transition
transition)
338
Collection<
Transition
> transitions = currentState.Transitions;
340
Dictionary<Activity, List<
Transition
>> unconditionalTransitionMapping = new Dictionary<Activity, List<
Transition
>>();
342
foreach (
Transition
transition in transitions)
383
unconditionalTransitionMapping.Add(triggerActivity, new List<
Transition
>());
394
foreach (KeyValuePair<Activity, List<
Transition
>> unconditionalTransitions in unconditionalTransitionMapping)
399
foreach (
Transition
transition in unconditionalTransitions.Value)
558
void TraverseViaTransitions(Action<State> actionForState, Action<
Transition
> actionForTransition)
578
foreach (
Transition
transition in currentState.Transitions)
System.Activities.Core.Presentation (41)
System\Activities\Core\Presentation\StateContainerEditor.CompositeView.cs (11)
55
if (item != null && item.ItemType == typeof(
Transition
))
69
itemsToCopy.RemoveAll(item => item.ItemType == typeof(
Transition
));
103
if (itemsToDelete.Count == 1 && itemsToDelete.First().ItemType == typeof(
Transition
))
109
itemsToDelete.RemoveAll(item => item.ItemType == typeof(
Transition
));
142
if (removeIncomingConnectors || connectorModelItem.ItemType == typeof(
Transition
))
152
if (connectorModelItem.ItemType == typeof(
Transition
))
169
if (itemsToPaste.Count == 1 && itemsToPaste.First() is
Transition
)
279
if (itemsToPaste.Count == 1 && itemsToPaste.First() is
Transition
)
305
Transition
pastedTransition = itemsToPaste.First() as
Transition
;
317
pastedTransition = (
Transition
)XamlServices.Load(reader);
System\Activities\Core\Presentation\StateContainerEditor.ModelChangeReactions.cs (1)
154
if (propertyChange.Owner.ItemType == typeof(
Transition
)
System\Activities\Core\Presentation\StateContainerEditor.ModelChanges.cs (8)
44
if (connectorModelItem.ItemType == typeof(
Transition
))
94
if (referenceTransitionModelItem != null && referenceTransitionModelItem.ItemType == typeof(
Transition
))
100
Transition
referenceTransition = referenceTransitionModelItem.GetCurrentValue() as
Transition
;
104
foreach (
Transition
transition in state.Transitions)
124
Transition
newTransition = new Transition() { DisplayName = StateContainerEditor.GenerateTransitionName(stateMachineModelItem) };
130
Transition
existingTransition = StateContainerEditor.GetConnectorModelItem(connector).GetCurrentValue() as
Transition
;
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (6)
418
if (modelItem != null && modelItem.ItemType == typeof(
Transition
))
442
static bool IsTransitionDestinationWithinStates(
Transition
transition, IEnumerable<State> states)
462
IEnumerable<
Transition
> toRemove = state.Transitions.Where<
Transition
>((p) =>
464
foreach (
Transition
transition in toRemove)
529
existingTransitionNames.Add(((
Transition
)transitionModelItem.GetCurrentValue()).DisplayName);
System\Activities\Core\Presentation\StateContainerEditor.xaml.cs (12)
738
bool isTransition = connectorModelItem != null && connectorModelItem.ItemType == typeof(
Transition
);
775
if (connectorModelItem.ItemType == typeof(
Transition
))
831
if (connectorModelItem.ItemType == typeof(
Transition
))
934
if (connectorModelItem.ItemType == typeof(
Transition
) && connectorModelItem.Properties[TransitionDesigner.TriggerPropertyName].Value != null)
1395
if (connectorModelItem != null && connectorModelItem.ItemType == typeof(
Transition
))
1403
if (connectorModelItem.ItemType == typeof(
Transition
))
1443
if (connectorModelItem != null && connectorModelItem.ItemType == typeof(
Transition
))
2137
primarySelection == null && connectorModelItem != null && connectorModelItem.ItemType != typeof(
Transition
))
2239
GetConnectorModelItem(stateMachineContainer.panel.connectorEditor.Connector).ItemType == typeof(
Transition
));
2363
private ModelItem DoAutoConnect(UIElement sourceElement, ModelItem droppedModelItem,
Transition
transitionToCopy, int insertIndex = InvalidIndex)
2371
Transition
transition = new Transition
2627
droppedModelItem, oldConnectorModelItem.GetCurrentValue() as
Transition
, index) != null;
System\Activities\Core\Presentation\StateMachineValidationErrorSourceLocator.cs (2)
92
Transition
foundTransition = null;
94
foreach (
Transition
transition in state.Transitions)
System\Activities\Core\Presentation\TransitionDesigner.xaml.cs (1)
207
Type transitionType = typeof(
Transition
);