diff --git a/src/Blazor.AdminLte.Site.Shared/Pages/Widgets/Widgets.razor b/src/Blazor.AdminLte.Site.Shared/Pages/Widgets/Widgets.razor
index d748843c..93f7b51b 100644
--- a/src/Blazor.AdminLte.Site.Shared/Pages/Widgets/Widgets.razor
+++ b/src/Blazor.AdminLte.Site.Shared/Pages/Widgets/Widgets.razor
@@ -177,12 +177,19 @@
Maximizable
-
+
- The body of the card
+ @BodyMaximizeCard
+ @code {
+ private MarkupString BodyMaximizeCard { get; set; } = (MarkupString)"The body of the card";
+ private void HandleOnMaximize(Tuple tuple)
+ {
+ BodyMaximizeCard = (MarkupString)"The body of the card, maximized";
+ }
+ }
diff --git a/src/Blazor.AdminLte/Card/CardTools.razor.cs b/src/Blazor.AdminLte/Card/CardTools.razor.cs
index 5c5f095c..c5c23623 100644
--- a/src/Blazor.AdminLte/Card/CardTools.razor.cs
+++ b/src/Blazor.AdminLte/Card/CardTools.razor.cs
@@ -26,7 +26,7 @@ private void DoOnRefresh(MouseEventArgs args)
private void DoOnMaximize(MouseEventArgs args)
{
IsMaximized = !IsMaximized;
- OnRefresh.InvokeAsync(new Tuple(this, args));
+ OnMaximize.InvokeAsync(new Tuple(this, args));
}
private CardToolOptions Options => ToolOptions ?? new CardToolOptions();