Ich habe XAML-Daten von einem Rich-Text-Editor. Die Informationen, die ich in XAML habe, sind HTML-Tags und ihre zugehörigen Attribute. Wie Absatz, seinen Text, Stil, etc. Ich möchte es in HTML konvertieren. Ein Teil von XAML:XAML in HTML konvertieren
<t:RadDocument xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:t="clr-namespace:Telerik.Windows.Documents.Model;assembly=Telerik.Windows.Documents" xmlns:s="clr-namespace:Telerik.Windows.Documents.Model.Styles;assembly=Telerik.Windows.Documents" version="1.2" LayoutMode="Flow" LineSpacing="1.15" LineSpacingType="Auto" ParagraphDefaultSpacingAfter="12" ParagraphDefaultSpacingBefore="0" SectionDefaultPageSize="816,1056" StyleName="defaultDocumentStyle">
<t:RadDocument.ProtectionSettings>
<t:DocumentProtectionSettings EnableDocumentProtection="False" Enforce="False" HashingAlgorithm="None" HashingSpinCount="0" ProtectionMode="ReadOnly" />
</t:RadDocument.ProtectionSettings>
<t:RadDocument.Styles>
<s:StyleDefinition DisplayName="Document Default Style" IsCustom="False" IsDefault="False" IsPrimary="True" Name="defaultDocumentStyle" Type="Default">
<s:StyleDefinition.ParagraphStyle>
<s:ParagraphProperties LineSpacing="1.15" SpacingAfter="12" />
</s:StyleDefinition.ParagraphStyle>
<s:StyleDefinition.SpanStyle>
<s:SpanProperties FontFamily="Verdana" FontSize="16" FontStyle="Normal" FontWeight="Normal" />
</s:StyleDefinition.SpanStyle>
</s:StyleDefinition>
<s:StyleDefinition DisplayName="TableNormal" IsCustom="False" IsDefault="True" IsPrimary="True" Name="TableNormal" Type="Table" />
</t:RadDocument.Styles>
<t:Section>
<t:Paragraph Background="#00FFFFFF" FirstLineIndent="0" LeftIndent="0" LineSpacing="1.14999997615814" LineSpacingType="Auto" RightIndent="0" SpacingAfter="0" SpacingBefore="0" TextAlignment="Center">
<t:Span FontWeight="Bold" Text="PATIENT REPORT" UnderlineDecoration="Line" />
</t:Paragraph>
</t:Section>
</t:RadDocument>
Wie kann ich dies in HTML konvertieren?
die gleiche Art, wie wir Äpfel umwandeln in Orangen. Es macht keinen Sinn. – Slyvain
Wahr. Aber die Informationen, die ich in XAML habe, sind HTML-Tags und ihre zugehörigen Attribute. Wie Absatz, seinen Text, Stil, etc. Bitte helfen. – eysharma