public void ShowWarning(string title, string message) { SnackbarHost.Post($"⚠️ {title}: {message}"); }
public void ShowError(string title, Exception exception) { SnackbarHost.Post($"❌ {title}: {exception.Message}"); }
public void ShowSuccess(string title, string message) { SnackbarHost.Post($"✔️ {title}: {message}"); }
public void ShowInformation(string title, string message) { SnackbarHost.Post($"ℹ️ {title}: {message}"); }
private void GoodbyeButtonMenuItem_OnClick(object?sender, RoutedEventArgs e) { SnackbarHost.Post("See ya next time, user!"); }
private void HelloButtonMenuItem_OnClick(object?sender, RoutedEventArgs e) { SnackbarHost.Post("Hello, user!"); }
private void TemplatedControl_OnTemplateApplied(object?sender, TemplateAppliedEventArgs e) { SnackbarHost.Post("Welcome to demo of Material.Avalonia!"); }