Hi WeiWen-3421,
Welcome to our Microsoft Q&A platform!
To allow users to choose a certain period of time to disable notification, you can add two TimePickers in you page.
<TimePicker x:Name="startTime"/>
<TimePicker x:Name="endTime"/>
You can get the demo of notification from this document.
You only need to add the following code into method OnSendClick
.
void OnSendClick(object sender, EventArgs e)
{
TimeSpan current = DateTime.Now.TimeOfDay;
TimeSpan start = startTime.Time;
TimeSpan end = endTime.Time;
if (current < start || end < current)
notificationManager.SendNotification(title, message);
}
Regards,
Kyle
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.