Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
禁用WPF流程文档中的搜索_Wpf_Flowdocument - Fatal编程技术网

禁用WPF流程文档中的搜索

禁用WPF流程文档中的搜索,wpf,flowdocument,Wpf,Flowdocument,我有一个在XAML中定义的流程文档,如下所示 <FlowDocumentScrollViewer> <FlowDocument> <Paragraph> <Run>Hello</Run> </Paragraph> </FlowDocument> </FlowDocumentScrollViewer> 你好 我想做的是防止在按

我有一个在XAML中定义的流程文档,如下所示

<FlowDocumentScrollViewer>
    <FlowDocument>
        <Paragraph>
            <Run>Hello</Run>
        </Paragraph>
    </FlowDocument>
</FlowDocumentScrollViewer>

你好
我想做的是防止在按Ctrl-F或F3时出现“查找”和“缩放”控件

这可能吗

提前谢谢!
Matt

您可以处理此控件的
PreviewKeyDown
事件,如果按下Ctrl-F或F3,则将事件标记为已处理。这将防止控件本身响应该事件并显示“查找”和“缩放”控件