@* Copyright (c) Microsoft. All rights reserved. *@ @using AGUIDojoClient.Components.Shared @inject DemoService DemoService @inject NavigationManager Nav

AG-UI Dojo

Microsoft Agent Framework (.NET)

@foreach (DemoScenario scenario in DemoService.AllScenarios) { }
@code { /// /// Gets or sets the currently selected scenario ID. /// [Parameter] public string? CurrentScenarioId { get; set; } private bool IsSelected(string scenarioId) => CurrentScenarioId?.Equals(scenarioId, StringComparison.OrdinalIgnoreCase) ?? false; private void NavigateToScenario(string scenarioId) => Nav.NavigateTo($"/microsoft-agent-framework/feature/{scenarioId}"); }