在WPF Frame控件中关闭导航页面声音 [英] Turn off navigation page sound in WPF Frame control

查看:134
本文介绍了在WPF Frame控件中关闭导航页面声音的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在WPF窗口中有一个Frame元素,并且使用Frame.Navigate()加载了应用程序中的所有内容.但是,导航到新页面时,默认情况下会播放声音,这与Internet Explorer中播放的声音相同.我有什么办法可以从应用程序中打开这种声音?我不想在操作系统级别的控制面板中关闭设置. 谢谢.

I have a Frame element in a WPF window and all content in my application is loaded by using Frame.Navigate(). However, when navigating to a new page, there is that sound that is played by default, it's the same sound that is played in Internet Explorer. Is there any way I can turn of this sound from the application? I don't want to turn off setting in the control panel on OS level. Thank you.

我想唯一的方法是在操作系统级别上更改声音,这可以在注册表中完成.这对我来说是可以接受的解决方案.

I guess the only way is to alter the sound on OS level, which can be done in the registry. This is acceptable solution for me.

http://social.msdn.microsoft.com/forums/zh-CN/vbgeneral/thread/843677F4-8F0B-46CB-986C-92E8042D0707

推荐答案

似乎没有其他方法,只是在Windows设置中关闭,如所述

It seems that there are no other ways, just to turn off in Windows settings like described here

这篇关于在WPF Frame控件中关闭导航页面声音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆