Esempio n. 1
0
        private void AlertPositioning()
        {
            if (radDesktopAlertManager != null)
            {
                radDesktopAlertManager.CloseAllAlerts();
            }


            if (WindowState != System.Windows.WindowState.Maximized)
            {
                var workingArea = System.Windows.SystemParameters.WorkArea;
                radDesktopAlertManager =
                    new RadDesktopAlertManager(
                        AlertScreenPosition.BottomLeft,
                        new Point(
                            Left + ActualWidth / 2 - 200,
                            -(workingArea.Height - Top - Height + 10)
                            ),
                        5
                        );
            }
            else
            {
                var rect = SystemParameters.WorkArea;

                radDesktopAlertManager =
                    new RadDesktopAlertManager(
                        AlertScreenPosition.BottomCenter, 5);
            }
        }
Esempio n. 2
0
 public void CloseAllToastNotifications()
 {
     radDesktopAlertManager.CloseAllAlerts();
 }