I have an HTML data provider added in XAML and it is bound to a string.
I have an items control within an items control and this is dynamically generated for each section.
I have followed all documentation online and do not know why my output is not showing style inline. Verified that it works and functions outside of the ItemsControl and just inside a grid. But I need it work below.......
Update 5/2/24 -- the HTLM dataProvider is working, but it is almost like all the settings in htmlExportSettings are being completely ignored.
<ItemsControl ItemsSource="{Binding MySections}">
<ItemsControl.ItemTemplate>
<ItemContainerTemplate>
<Grid>
<ItemsControl ItemsSource="{Binding MySections.MyControls}">
<ItemsControl.ItemTemplate>
<ItemContainerTemplate>
<Grid>
<telerik:HtmlDataProvider RichTextBox="{Binding ElementName=radRichTextBox}" Html="{Binding MyRichText, Mode=TwoWay, NotifyOnValidationError=true, TargetNullValue='', ValidatesOnExceptions=true}" >
<telerik:HtmlDataProvider.FormatProvider>
<telerik:HtmlFormatProvider>
<telerik:HtmlFormatProvider.ExportSettings>
<telerik:HtmlExportSettings DocumentExportLevel="Fragment"
ImageExportMode="UriSource"
ExportStyleMetadata="False"
StyleRepositoryExportMode="DontExportStyles"
StylesExportMode="Inline"
ExportHeadingsAsTags="True"
ExportFontStylesAsTags="True"
ExportBoldAsStrong="true"
ExportItalicAsEm="True"
ExportEmptyDocumentAsEmptyString="True"/>
</telerik:HtmlFormatProvider.ExportSettings>
</telerik:HtmlFormatProvider>
</telerik:HtmlDataProvider.FormatProvider>
</telerik:HtmlDataProvider>
<telerik:RadRichTextBox x:Name="radRichTextBox" IsSelectionMiniToolBarEnabled="False" IsContextMenuEnabled="True" IsSpellCheckingEnabled="True" LayoutMode="Paged"/>
</Grid>
</ItemContainerTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
</ItemContainerTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>