I'm searching for an option to apply a margin or/and padding to an inline element as Span in Flowdocument. Any ideas?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can find a good overview how to handle text in FlowDocument in the following link. http://msdn.microsoft.com/en-us/library/aa970786.aspx
I used TextBlock. As it seems TextBlock is unable have a margin. So be sure to use padding instead.