46 StringBuilder sb =
new();
48 foreach (
string Row
in Rows)
51 XmlDocument Doc =
new()
53 PreserveWhitespace =
true
55 Doc.LoadXml(sb.ToString());
62 Output.WriteStartElement(
"Label");
63 Output.WriteAttributeString(
"Text", ex.Message);
64 Output.WriteAttributeString(
"FontFamily",
"Courier New");
65 Output.WriteAttributeString(
"TextColor",
"Red");
66 Output.WriteAttributeString(
"LineBreakMode",
"WordWrap");
67 Output.WriteEndElement();
69 return Task.FromResult(
false);
72 Output.WriteStartElement(
"VerticalStackLayout");
73 Output.WriteAttributeString(
"HorizontalOptions",
"Center");
75 Output.WriteStartElement(
"Path");
76 Output.WriteAttributeString(
"VerticalOptions",
"Center");
77 Output.WriteAttributeString(
"HorizontalOptions",
"Center");
78 Output.WriteAttributeString(
"HeightRequest",
"16");
79 Output.WriteAttributeString(
"WidthRequest",
"16");
80 Output.WriteAttributeString(
"Aspect",
"Uniform");
81 Output.WriteAttributeString(
"Fill",
"{AppThemeBinding Light={StaticResource PrimaryForegroundLight}, Dark={StaticResource PrimaryForegroundDark}}");
82 Output.WriteAttributeString(
"Data",
"{x:Static ui:Geometries.TokenPath}");
83 Output.WriteEndElement();
85 Output.WriteStartElement(
"Label");
86 Output.WriteAttributeString(
"LineBreakMode",
"WordWrap");
87 Output.WriteAttributeString(
"FontSize",
"Medium");
88 Output.WriteAttributeString(
"HorizontalOptions",
"Center");
90 Output.WriteEndElement();
92 Output.WriteStartElement(
"StackLayout.GestureRecognizers");
94 Output.WriteStartElement(
"TapGestureRecognizer");
95 Output.WriteAttributeString(
"Command",
"{Binding Path=NeuroFeatureUriClicked}");
97 Output.WriteEndElement();
99 Output.WriteEndElement();
100 Output.WriteEndElement();
102 return Task.FromResult(
true);
const string NeuroFeature
eDaler URI Scheme (edaler)
A set of never changing property constants and helpful values.
Base class that references services in the app.
static IStringLocalizer Localizer
Localization service
void Register(MarkdownDocument Document)
Registers the Markdown document in which the construct resides.
MarkdownDocument? Document
Markdown document.
bool EvaluatesScript
If script is evaluated for this type of code block.
NeuroFeatureCodeBlock()
Handles embedded tokens.
Grade Supports(string Language)
How much the module supports code of a given language (i.e. type of content)
Task< bool > RenderMauiXaml(MauiXamlRenderer Renderer, string[] Rows, string Language, int Indent, MarkdownDocument Document)
Generates Maui XAML
Renders XAML (Maui flavour) from a Markdown document.
readonly XmlWriter XmlOutput
XML output
static bool TryParse(XmlElement Xml, out Token Token)
Serializes the Token, in normalized form.
string FriendlyName
A friendly name for the token.
string ToXml()
Exports the token to XML.
Contains a markdown document. This markdown document class supports original markdown,...
Interface for code content Maui XAML renderers.
Interface for all markdown handlers of code content.