using Xui.Core.UI; using Xui.ToolKit.UI.Branding; using Xui.ToolKit.UI.Design; using Xui.ToolKit.UI.Navigation; using Xui.ToolKit.UI.Widgets; public sealed class PagesExample : Border { public PagesExample() { Content = new DesignSystemView(new NavigationShell("Field notes", new XuiLogoView(), [new("Notebook", "Notebook", () => new NotebookPage()), new("About", "About", () => new Label { Text = "A place for small discoveries.", FontFamily = "Inter", FontSize = 16, Margin = 24 })], desktop: false)); } private sealed class NotebookPage : VerticalStack { public NotebookPage() { Margin = 24; var count = 0; var note = new Label { Text = "No notes yet.", FontFamily = "Inter", FontSize = 18, Margin = 8 }; Add(note); Add(new Button { Text = "Add a note", Margin = 8, Clicked = () => note.Text = $"Notes: {++count}" }); } } }