Wpf 我应该如何创建具有自己的可视化表示的自定义flowdocument控件?
我如何创建一个控件,允许我不断重复某些FlowDocument元素 我想让Xaml看起来像这样:Wpf 我应该如何创建具有自己的可视化表示的自定义flowdocument控件?,wpf,flowdocument,Wpf,Flowdocument,我如何创建一个控件,允许我不断重复某些FlowDocument元素 我想让Xaml看起来像这样: <MyCustomControl> <Paragraph>Paragraph 1</Paragraph> </MyCustomControl> <Section> <Paragraph>This is Header Text</Paragraph> <Section> <!
<MyCustomControl>
<Paragraph>Paragraph 1</Paragraph>
</MyCustomControl>
<Section>
<Paragraph>This is Header Text</Paragraph>
<Section> <!-- this is user area -->
<Paragraph>Paragraph 1</Paragraph>
</Section>
<Paragraph>This is Footer Text</Paragraph>
</Section>
<MyCustomControl StuffOnInside="<Paragraph>Paragraph 1</Paragraph>" />
<MyCustomControl StuffOnInside="<Paragraph>Paragraph 1</Paragraph>">
<Paragraph>This is Header Text</Paragraph>
<Section> <!-- this is user area -->
<Paragraph>Paragraph 1</Paragraph>
</Section>
<Paragraph>This is Footer Text</Paragraph>
</MyCustomControl>