- Moderator
- #1
In Onlinevideos I have 3 basic WorkflowStates: Sites -> Categories -> Videos.
Currently everytime a new state is entered, I push that WorkflowState on the NavigationStack using IWorkflowManager.NavigatePushAsync.
Sometimes there are Categories below Categories (recursive), so there are multiple Category - WorkflowStates on the Stack. It is then impossible to go back by pressing any previous state in the NavigationBar (going back one State by pressing ESC works fine).
I looked at WorkflowManager.NavigatePopToStateInternal, which is called in that case. It cannot handle multiple states with the same Id (Guid) on the stack:
What shall we do? I guess this scenario does not happen in the default Media Screens, but I think it is a valid one? If not, how should I re-code my Navigation?
Currently everytime a new state is entered, I push that WorkflowState on the NavigationStack using IWorkflowManager.NavigatePushAsync.
Sometimes there are Categories below Categories (recursive), so there are multiple Category - WorkflowStates on the Stack. It is then impossible to go back by pressing any previous state in the NavigationBar (going back one State by pressing ESC works fine).
I looked at WorkflowManager.NavigatePopToStateInternal, which is called in that case. It cannot handle multiple states with the same Id (Guid) on the stack:
Code:
while (CurrentNavigationContext.WorkflowState.StateId != stateId)
What shall we do? I guess this scenario does not happen in the default Media Screens, but I think it is a valid one? If not, how should I re-code my Navigation?