You can use the timer if you are trying to make this popup in a certain number of hours / seconds / minutes (or determine how many hours / seconds / minutes are left until your specific time arrives).
private System.Windows.Threading.DispatcherTimer popupTimer;
private void OnClick(object sender, RoutedEventArgs e)
{
popupTimer = new System.Windows.Threading.DispatcherTimer();
popupTimer.Interval = specificTime - DateTime.Now;
popupTimer.IsEnabled = true;
popupTimer.Tick += new EventHandler(popupTimer_Tick);
}
void popupTimer_Tick(object sender, EventArgs e)
{
popupTimer.IsEnabled = false;
}
Okay, so you also want to know how to make popups like notifier, which maybe this article in CodeProject can help.
source
share