在webBrowser控件中禁用打印似乎是不可能的。The behavior seems strange, but from my testing, you can trigger the dialog while the webbrowser controlIf you click on another control so the webbrowser loses focus, and click on the webbrowser again, you使用Webbrowser的Pr
IsDesignModePropertyChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args) WebBrowserbrowser = obj as WebBrowser; {
var htmlDoc = (s as <