/// <summary> /// Updates the collapses substate name for the state machine. /// </summary> protected virtual void UpdateCollapsedSubstate() { StateMachine parent = (StateMachine)FindContainer(typeof(StateMachine)); if (parent != null) { parent.UpdateCollapsedSubstate(); return; } if (this.CurrentState.EffectiveDisplayNameSpecified) { this.CurrentState.EffectiveDisplayName.Value = GetCollapsedSubstate(); } }