我的XAML代码是这样的:
<Window
xmlns ='http://schemas.microsoft.com/netfx/2007/xaml/presentation'
xmlns:x ='http://schemas.microsoft.com/winfx/2006/xaml'
Title ='Print Preview - More stuff here'
Height ='200'
Width ='300'
WindowStartupLocation ='CenterOwner'>
<DocumentViewer Name='dv1' ... />
</Window>
Run Code Online (Sandbox Code Playgroud)
如何在XAML或C#中删除搜索框?
如果您在 Visual Studio 2005 中执行以下操作(或仅执行 ctrl+p):文件 ==> 打印..
您会看到一个打印对话框屏幕。我想在我的程序中使用同样的方法,但是如何呢?