is it possible to create a custom inline object like "Run" and "Span" in RichTextBlock? I didn't find any example or samples.
Thank you!
As I know, you're can not create custom inline element because ITextElement
, ITextElementOverrides
or IInline
are internal interfaces
Instead this, you can try to use InlineUIContainer class
<RichTextBlock>
<Paragraph>
<Italic>This is an inline image.</Italic>
<InlineUIContainer>
<!--your xaml code here-->
</InlineUIContainer>
Mauris auctor tincidunt auctor.
</Paragraph>
</RichTextBlock>