要素を含むいくつかのRichTextBlock
オブジェクトを扱っていInlineUIContainer
ます。に含まれるテキストを含むすべてのテキストを選択してコピーできるようにしたいと考えていますInlineUIContainer
。
現在、ブロック内のすべてのテキストを選択すると、InlineUIContainer
オブジェクトに含まれるテキストがスキップされます。
これが私が作成しているものの例です:
<RichTextBlock IsTextSelectionEnabled="True">
<Paragraph FontSize="20">
<Bold>This text is selectable</Bold>
<InlineUIContainer FontFamily="Global User Interface">
<StackPanel Orientation="Horizontal">
<TextBlock FontSize="11" VerticalAlignment="Top" Margin="0,0,-1,0">Super Script Text</TextBlock>
<HyperlinkButton ClickMode="Release" Style="{StaticResource NoMarginHyperlinkButtonStyle}">
Link
</HyperlinkButton>
</StackPanel>
</InlineUIContainer>
This text is also selectable
</Paragraph>
</RichTextBlock>
この Xaml からすべてのテキストを選択してメモ帳にコピー アンド ペーストすると、スーパー スクリプト テキストまたはリンク テキストが表示されません。
すべてのテキストを選択する方法はありますか?