public static void UpdateInternalNofinication() { NotificationBar clipboardnotification = new NotificationBar(); clipboardnotification.HeadlineText = "剪贴板感知"; clipboardnotification.DescriptionText = "检测到您复制了 " + ClipboardText + " 。"; clipboardnotification.Button1.Content = "查词"; clipboardnotification.Button2.Content = "仅黏贴"; clipboardnotification.Button3.Content = "取消"; clipboardnotification.Button1.Click += (s, e) => { AppViewModel.UpdateTextBoxAndQueryWord(ClipboardText); clipboardnotification.IsOpen = false; }; clipboardnotification.Button2.Click += (s, e) => { AppViewModel.UpdateTextBoxOnly(ClipboardText); clipboardnotification.IsOpen = false; }; clipboardnotification.Button3.Click += (s, e) => { clipboardnotification.IsOpen = false; }; MainPage.Add_Notification(clipboardnotification); }