public Notification() { InitializeComponent(); DataContext = new NotificationVM(this); var desktopWorkingArea = System.Windows.SystemParameters.WorkArea; this.Left = desktopWorkingArea.Right - this.Width - 10; this.Top = desktopWorkingArea.Bottom - this.Height - 10; }
public OpenNoticationWindow(string _title, string _date, string _link) { Title = _title; Date = _date; Link = _link; var displayRootRegistry = (Application.Current as App).displayRootRegistry; var notificationVM = new NotificationVM(Title, Date, Link); displayRootRegistry.ShowPresentation(notificationVM); }