public static ISlidePanel Notification(ISlidePanel panel, string title, string message, string icon = null, Action action = null) { panel.Position = Position.BOTTOM; panel.TitleVisibility = Visibility.Collapsed; panel.CloseButtonVisibility = Visibility.Collapsed; panel.IsPinned = true; panel.Height = 50; panel.SetZIndex(500); panel.UseAltTheme = true; var content = new NotificationDialog(title, message); content.SetUtilityButton(action, icon ?? IcoMoon.Notification); content.SetCloseButton(() => panel.Close(), IcoMoon.CancelCircle); panel.Content = content; panel.Attach(); _panels.Add(panel); Common.Log.Debug($"SlidePanelManager: Created Notificaton ({title}, {message})"); return(panel); }
public static ISlidePanel Add(ISlidePanel panel) { Common.Log.Debug($"SlidePanelManager: Adding {panel.Name}"); _panels.Add(panel); return(panel); }