public void RemoveBox(NotifyBox box) { Container.Children.Remove(box); if (Container.Children.Count == 0) { Controller.Current.MainWindow.Sidebar.DontHideSidebar = false; Hide(); } }
public void AddBox(NotifyBox box) { Container.Children.Add(box); // show sidebar Controller.Current.MainWindow.Sidebar.DontHideSidebar = true; Controller.Current.MainWindow.Sidebar.Opacity = 0.6; PositionWindow(); Show(); }
public static void Growl(string title, string message, string footer, bool stick) { var box = new NotifyBox(title, message, footer, stick); NotifyContainer.Instance.AddBox(box); }