Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 24 additions & 1 deletion src/Controls/src/Core/Shell/ShellSection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,30 @@ static void OnCurrentItemChanged(BindableObject bindable, object oldValue, objec

if (shellSection.Parent?.Parent is IShellController shell && shellSection.IsVisibleSection)
{
shell.UpdateCurrentState(ShellNavigationSource.ShellContentChanged);
if (shellSection.Parent?.Parent is Shell parentShell && shellSection.IsVisibleSection)
Comment thread
jpd21122012 marked this conversation as resolved.
Outdated
{
var navigationManager = parentShell.NavigationManager;

var proposedState = ShellNavigationManager.GetNavigationState(
parentShell.CurrentItem,
shellSection,
(ShellContent)newValue,
null,
null);
Comment thread
jpd21122012 marked this conversation as resolved.
Outdated

var navArgs = new ShellNavigatingEventArgs(
parentShell.CurrentState,
proposedState,
ShellNavigationSource.ShellContentChanged,
true);
Comment thread
jpd21122012 marked this conversation as resolved.
Outdated

navigationManager.HandleNavigating(navArgs);

if (navArgs.Cancelled)
return;

Comment thread
jpd21122012 marked this conversation as resolved.
Outdated
((IShellController)parentShell).UpdateCurrentState(ShellNavigationSource.ShellContentChanged);
}
Comment thread
jpd21122012 marked this conversation as resolved.
Outdated
}

shellSection.SendStructureChanged();
Expand Down
Loading