在WPF的RichTextBox富文本中加入一个可点击的按钮
<RichTextBox>
<local:MyFlowDocument>
<Paragraph>
<InlineUIContainer>
<Button Content="Click Me!" Click="Button_Click"/>
</InlineUIContainer>
</Paragraph>
</local:MyFlowDocument>
</RichTextBox>
class MyFlowDocument : FlowDocument
{
protected override bool IsEnabledCore
{
get
{
return true;
}
}
}