// Generated API outline. Implementation bodies omitted.
#nullable enable
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Threading;
using System;
using nfloat = System.Runtime.InteropServices.NFloat;
namespace Xui.ToolKit.UI.Navigation
{
using Xui.Core.UI;
/// A named destination whose content is created when first opened.
/// Stable application-defined destination identifier.
/// Label shown in navigation and the page header.
/// Creates a fresh, unattached view for this destination.
public sealed record NavigationItem(string Id, string Title, Func Create);
}
namespace Xui.ToolKit.UI.Navigation
{
using Xui.Core.Canvas;
using Xui.Core.Math2D;
using Xui.Core.UI;
using Xui.ToolKit.UI.Widgets;
/// A page title, optional Back button, and a content view.
public sealed class NavigationPage : ViewCollection
{
/// Creates page chrome around application content.
public NavigationPage(string title, View content, Action? goBack = null);
/// Override to compute the desired border-edge size.
protected override Size MeasureCore(Size available, IMeasureContext context);
/// Override to arrange children within this view's final frame.
protected override void ArrangeCore(Rect rect, IMeasureContext context);
}
}
namespace Xui.ToolKit.UI.Navigation
{
using Xui.Core.Canvas;
using Xui.Core.Math2D;
using Xui.Core.UI;
using Xui.ToolKit.UI.Mobile.Navigation;
using Xui.ToolKit.UI.Widgets;
/// A small application shell: a home page and push navigation on mobile,
/// or a persistent sidebar with replaceable content on desktop.
public sealed class NavigationShell : ViewCollection
{
/// Creates a shell with a brand view and a short list of destinations.
/// Application title shown in the desktop sidebar.
/// Logo or other home-page branding.
/// Unique, nonempty destination IDs; "Home" is reserved.
/// Whether to show a persistent sidebar.
public NavigationShell(string title, View brand, IEnumerable destinations, bool desktop);
/// Opens a destination. Desktop pages retain their state while switching.
public void Navigate(string id);
/// Override to compute the desired border-edge size.
protected override Size MeasureCore(Size available, IMeasureContext context);
/// Override to arrange children within this view's final frame.
protected override void ArrangeCore(Rect rect, IMeasureContext context);
/// Override to render this view and its children.
protected override void RenderCore(IContext context);
}
}