C# 无消息报警对话框

C# 无消息报警对话框,c#,windows-phone-8,message,alarm,C#,Windows Phone 8,Message,Alarm,我想制作一个应用程序,当用户设置警报(如唤醒警报)并发出警报时,不会显示确认和停止警报的消息对话框 在网上,我发现了一些称为模糊和无障碍的方法,当消息的警报显示时触发,但消息仍然显示 代码: public OverAlarmPage() { InitializeComponent(); PhoneApplicationFrame phoneAppRootFrame = (Application.Current as App).RootFr

我想制作一个应用程序,当用户设置警报(如唤醒警报)并发出警报时,不会显示确认和停止警报的消息对话框

在网上,我发现了一些称为
模糊
无障碍
的方法,当消息的警报显示时触发,但消息仍然显示

代码:

        public OverAlarmPage()
    {
        InitializeComponent();

        PhoneApplicationFrame phoneAppRootFrame = (Application.Current as App).RootFrame;
        phoneAppRootFrame.Obscured += OnObscured;
        phoneAppRootFrame.Unobscured += Unobscured;
    }



    void OnObscured(Object sender, ObscuredEventArgs e)
    {
        txtStatus.Text = "Obscured event occurred";
    }

    void Unobscured(Object sender, EventArgs e)
    {
        txtStatus.Text = "Unobscured event occurred";
    }
我只想让停止与手机(陀螺仪)振动警报声,但没有地狱的消息


有什么解决方案或这是我无法触及的O.S功能吗?

内置的通知类(报警和提醒)不支持对触发时显示的UI进行任何自定义

我能想到的唯一替代方案是要求应用程序保持运行(可能在锁定屏幕下),然后在适当的时间播放应用程序发出的声音。
显然,这需要应用程序保持运行。
除此之外,你将无法尝试创造你所追求的行为