Table of Contents

Interface IPageContext

Namespace
The.Web.Pages
Assembly
Instagile.Web.Client.dll
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

title string

Null if the title is still being loaded.

requiresVerticalConstraint bool

Force internal scrolling.

commands ICommandHost

Null if the page presents no commands.

Returns

IDisposable

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

isRoot bool

Returns

bool