示例#1
0
        public void RemoveBox(NotifyBox box)
        {
            Container.Children.Remove(box);

            if (Container.Children.Count == 0)
            {
                Controller.Current.MainWindow.Sidebar.DontHideSidebar = false;

                Hide();
            }
        }
示例#2
0
        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();
        }
示例#3
0
        public static void Growl(string title, string message, string footer, bool stick)
        {
            var box = new NotifyBox(title, message, footer, stick);

            NotifyContainer.Instance.AddBox(box);
        }