Shell
This page describes how create a Shell in MauiReactor
Shell with ShellContents
class MainPageState
{
public int Counter { get; set; }
}
class MainPage : Component<MainPageState>
{
public override VisualNode Render()
=> new Shell
{
new ShellContent("Home")
.Icon("home.png")
.RenderContent(()=> new HomePage()),
new ShellContent("Comments")
.Icon("comments.png")
.RenderContent(()=> new CommentsPage()),
};
}
class HomePage : Component
{
public override VisualNode Render()
{
return new ContentPage("Home")
{
new Label("Home")
.VCenter()
.HCenter()
};
}
}
class CommentsPage : Component
{
public override VisualNode Render()
{
return new ContentPage("Comments")
{
new Label("Comments")
.VCenter()
.HCenter()
};
}
}


Shell with Tab and FlyoutItem (AsMultipleItems)


Custom FlyoutItem appearance

Custom FlyoutContent

Shell menu items


Flyout Header and Footer

Tabs


Navigation


Shell TitleView
Last updated