Interface IPageContext
public interface IPageContext
Methods
RegisterPage(string?, bool, ICommandHost?)
Registers a page's chrome with the shell, replacing the current registration. The page disposes the returned registration when it leaves the tree. Blazor initialises replacement components before it disposes the components they replace, so implementations must ignore the disposal of a registration that a newer one has already replaced.
IDisposable RegisterPage(string? title, bool requiresVerticalConstraint, ICommandHost? commands)
Parameters
titlestringNull if the title is still being loaded.
requiresVerticalConstraintboolForce internal scrolling.
commandsICommandHostNull if the page presents no commands.
Returns
SuppressChrome(bool)
If true, an external shell will display the page's title and commands, so the page itself should just present content.
bool SuppressChrome(bool isRoot)
Parameters
isRootbool