1

我有一个像这样在 XAML 中定义的 FlowDocument;

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

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

这可能吗?

提前致谢!马特

4

1 回答 1

2

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

于 2009-02-10T17:34:02.177 回答