WPF框架内容产生有声的点击(我不想要点击)。[英] WPF Frame Content Producing Audible Click (And I Don't Want the Click)

本文是小编为大家收集整理的关于WPF框架内容产生有声的点击(我不想要点击)。的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。

问题描述

c#wpf .net 4.0.

分配帧内容时,会单击可听见(例如,单击未经处理的事件).我不想要可听到的单击.

要清楚new Page1()不会产生可听见的单击. frame1.content行会产生单击,但是单击仅创建从第1页到新页面1或从页面1到null. null到Null不会创建单击. null到new page1()不会单击.有什么想法吗?

Page1 nextPage = new Page1("ctor string");
Frame1.content = nextPage;

推荐答案

这是WPF团队的答案. https://connect.microsoft.com:443/visualstudio/feedback/details/345528/webbrowser-control-control-control-control-control-control-in-wpf-disable-sound" .com:443/visualStudio/Feffback/详细信息/345528/webbrowser-control-in-wpf-disable-sound

本文地址:https://www.itbaoku.cn/post/2091178.html

问题描述

C# WPF .NET 4.0.

When assigning the frame content, an audible click is produced (like an unhandled event click). I don't want the audible click.

To be clear new Page1() does not produce the audible click. The Frame1.content line produces the click, but the click is only created going from Page1 to a new Page1 or from a Page1 to null. Null to null does NOT create a click. And null to new Page1() does not produce a click. Any ideas?

Page1 nextPage = new Page1("ctor string");
Frame1.content = nextPage;

推荐答案

Here's an answer from the wpf team. https://connect.microsoft.com:443/VisualStudio/feedback/details/345528/webbrowser-control-in-wpf-disable-sound