Hello everyone,
I put the Radzen layout on the mainlayout.razor as like in the example.
Everything works fine except now the button in the index, does not show the notification, even if before this change worked.
What am I missing?
Thanks!
@using Radzen;
@inherits LayoutComponentBase
@inject NotificationService notificationService;
<PageTitle>Blazapp</PageTitle>
<RadzenLayout>
<RadzenHeader>
<RadzenStack Orientation="Orientation.Horizontal" AlignItems="AlignItems.Center" Gap="0">
<RadzenSidebarToggle Click="@(() => sidebar1Expanded = !sidebar1Expanded)" />
</RadzenStack>
</RadzenHeader>
<RadzenSidebar @bind-Expanded="@sidebar1Expanded">
<RadzenPanelMenu>
<RadzenPanelMenuItem Text="Home" Icon="home" Path="" />
<RadzenPanelMenuItem Text="Users" Icon="account_box" />
<RadzenPanelMenuItem Text="Manage Webhooks" Icon="webhook" />
</RadzenPanelMenu>
</RadzenSidebar>
<RadzenBody>
<div class="rz-p-4">
@Body
</div>
</RadzenBody>
<RadzenFooter>
</RadzenFooter>
</RadzenLayout>
@code {
bool sidebar1Expanded = true;
}