private void UpdateTextBlock(RichTextBlock richTextBlock) { var builder = new RichTextBlockBuilder(); IList <Image> images; var paragraphs = builder.GetParagraphs((string)HtmlContent, out images); foreach (var paragraph in paragraphs) { richTextBlock.Blocks.Add(paragraph); } _created = true; var imageManager = ServiceLocator.Current.GetInstance <ImageManager>(); imageManager.RegisterBlock(richTextBlock, images); }
private void UpdateTextBlock(RichTextBlock richTextBlock) { var builder = new RichTextBlockBuilder(); IList<Image> images; var paragraphs = builder.GetParagraphs((string) HtmlContent, out images); foreach (var paragraph in paragraphs) { richTextBlock.Blocks.Add(paragraph); } _created = true; var imageManager = ServiceLocator.Current.GetInstance<ImageManager>(); imageManager.RegisterBlock(richTextBlock, images); }