+
+
+
+
+
+
+
+
+
+ Message: @message?.ToString()
+
+
+
+@code {
+ private static Icon HomeIcon(bool active = false) =>
+ active ? new Icons.Filled.Size24.Home()
+ : new Icons.Regular.Size24.Home();
+
+ private static Icon AppBarIcon(bool active = false) =>
+ active ? new Icons.Filled.Size24.AppsList()
+ : new Icons.Regular.Size24.AppsList();
+
+ private static Icon WhatsNewIcon(bool active = false) =>
+ active ? new Icons.Filled.Size24.Info()
+ : new Icons.Regular.Size24.Info();
+
+ private static Icon IconsIcon(bool active = false) =>
+ active ? new Icons.Filled.Size24.Symbols()
+ : new Icons.Regular.Size24.Symbols();
+
+ private static Icon DialogIcon(bool active = false) =>
+ active ? new Icons.Filled.Size24.AppGeneric()
+ : new Icons.Regular.Size24.AppGeneric();
+
+ string message = string.Empty;
+ void OnClick(IAppBarItem item)
+ {
+ message = $"{item.Text} clicked.";
+ }
+
+ async Task ShowSuccessAsync(IAppBarItem item)
+ {
+ var dialog = await DialogService.ShowSuccessAsync($"You clicked {item.Text}.");
+ var result = await dialog.Result;
+ }
+
+ async Task ShowWarningAsync(IAppBarItem item)
+ {
+ var dialog = await DialogService.ShowWarningAsync($"You clicked {item.Text}. Are you sure?");
+ var result = await dialog.Result;
+ }
+}