/// <summary> /// Initializes a new instance of the <see cref="MarkdownRenderer"/> class. /// </summary> /// <param name="document">The Document to Render.</param> /// <param name="linkRegister">The LinkRegister, <see cref="MarkdownTextBlock"/> will use itself.</param> /// <param name="imageResolver">The Image Resolver, <see cref="MarkdownTextBlock"/> will use itself.</param> /// <param name="codeBlockResolver">The Code Block Resolver, <see cref="MarkdownTextBlock"/> will use itself.</param> public MarkdownRenderer(MarkdownDocument document, ILinkRegister linkRegister, IImageResolver imageResolver, ICodeBlockResolver codeBlockResolver) : base(document) { LinkRegister = linkRegister; ImageResolver = imageResolver; CodeBlockResolver = codeBlockResolver; DefaultEmojiFont = new FontFamily("Segoe UI Emoji"); }
/// <summary> /// Initializes a new instance of the <see cref="MarkdownRenderer"/> class. /// </summary> /// <param name="document">The Document to Render.</param> /// <param name="linkRegister">The LinkRegister, <see cref="MarkdownTextBlock"/> will use itself.</param> /// <param name="imageResolver">The Image Resolver, <see cref="MarkdownTextBlock"/> will use itself.</param> /// <param name="codeBlockResolver">The Code Block Resolver, <see cref="MarkdownTextBlock"/> will use itself.</param> /// <param name="emojiInlineResolver">The Emoji Inline Resolver, <see cref="MarkdownTextBlock"/> will use itself.</param> public MarkdownRenderer(MarkdownDocument document, ILinkRegister linkRegister, IImageResolver imageResolver, ICodeBlockResolver codeBlockResolver, IEmojiInlineResolver emojiInlineResolver) : base(document) { LinkRegister = linkRegister; ImageResolver = imageResolver; CodeBlockResolver = codeBlockResolver; EmojiInlineResolver = emojiInlineResolver; DefaultEmojiFont = SystemFonts.MessageFontFamily; }
/// <summary> /// Initializes a new instance of the <see cref="XamlRenderer"/> class. /// </summary> /// <param name="document">The <see cref="MarkdownDocument"/>.</param> /// <param name="linkRegister">The <see cref="ILinkRegister"/>.</param> /// <param name="users">The list of users mentioned in the markdown.</param> /// <param name="messageId">The id of the message.</param> /// <param name="codeBlockResolver">The <see cref="ICodeBlockResolver"/>.</param> /// <param name="border">The root markdown.</param> /// <param name="halfopacity">Whether or not the markdown is in half opacity mode.</param> public XamlRenderer(MarkdownDocument document, ILinkRegister linkRegister, IEnumerable <User> users, string messageId, ICodeBlockResolver codeBlockResolver, ref Border border, bool halfopacity) { _document = document; _halfopacity = halfopacity; _linkRegister = linkRegister; _messageid = messageId; CodeBlockResolver = codeBlockResolver; Root = border; _users = users; }
public SampleAppMarkdownRenderer(MarkdownDocument document, ILinkRegister linkRegister, IImageResolver imageResolver, ICodeBlockResolver codeBlockResolver) : base(document, linkRegister, imageResolver, codeBlockResolver) { LanguageRequested += SampleAppMarkdownRenderer_LanguageRequested; }
public XamlRenderer(MarkdownDocument document, ILinkRegister linkRegister) { _document = document; _linkRegister = linkRegister; }
public XamlRenderer(MarkdownDocument document, ILinkRegister linkRegister) { this.document = document; this.linkRegister = linkRegister; }
public RenderToRichTextBlock(RichTextBlock richTextBlock, ILinkRegister linkRegister) { m_richTextBlock = richTextBlock; m_linkRegister = linkRegister; }
public CodeMarkdownRenderer(MarkdownDocument document, ILinkRegister linkRegister, IImageResolver imageResolver, ICodeBlockResolver codeBlockResolver) : base(document, linkRegister, imageResolver, codeBlockResolver) { }
public XamlRenderer(MarkdownDocument document, ILinkRegister linkRegister) { this.document = document; this.linkRegister = linkRegister; }
public RenderToRichTextBlock(RichTextBlock richTextBlock, ILinkRegister linkRegister) { m_richTextBlock = richTextBlock; m_linkRegister = linkRegister; }
public XamlRenderer(MarkdownDocument document, ILinkRegister linkRegister, IImageResolver imageResolver) { _document = document; _linkRegister = linkRegister; _imageResolver = imageResolver; }