【发布时间】:2011-08-31 02:36:43
【问题描述】:
这个问题有一个解决方案: How do you hide a WPF DocumentViewer's menu bars?
但是,它只允许通过 XAML 隐藏工具栏。我需要以编程方式完成这项工作。
这个答案:WPF: How can I remove the searchbox in a DocumentViewer? 以编程方式隐藏搜索栏。
如何通过非 xaml 代码隐藏主工具栏?
【问题讨论】:
-
我认为这是最简单最好的解决方法:stackoverflow.com/questions/1649325/…
标签: .net wpf hide toolbar documentviewer