/// <summary>
 /// Handle elements with inline code styling
 /// </summary>
 /// <param name="props">The element properties</param>
 private static void InlineCodeElement(ElementProperties props)
 {
     Span s = new Span();
     props.Converter.AddInlineToContainer(s);
     s.SetResourceReference(Run.StyleProperty, NamedStyle.CodeInline);
 }
Esempio n. 2
0
 protected override Inline BuildElementInternal()
 {
     var span = new Span(new Run(Text));
     span.SetResourceReference(FrameworkContentElement.StyleProperty, "HighlightedTextStyle");
     return span;
 }