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>
<telerik:RadGridView.Columns>
<telerik:GridViewDataColumn DataMemberBinding="{Binding Filename, Mode=OneWay}"
Width="*" />
I want my grid to resize to fill the available space if the user makes the window bigger.
The above does not do anything unless I set the parent grid width to "Auto"
Then it expands the grid to the entire screen, instead of just the Window.
(I find it extremely frustrating that the window auto expands)
What am I missing in order to get what I'm looking for?
I am using a WPF RadAutoCompleteBox control in my application, I am trying to set a custom style to this control but there are a few behaviors I could not get it right.
This is the current look of the control:
The colors I wish to change:
1. Text color in the textblock as pointed with the green arrow.
2. The background of the selected item in the drop down menu as pointed with the blue arrow. Currently it is showing as transparent, but I wish change it into a solid color.
3. The transparent background of the drop down menu as pointed with the purple arrow.
I have tried to change the background and foreground properties but could not see the effect on the control. I have attached the style file I used for the control.
Any advice?
Thank you!
Is Telerik WPF WebCam control supported in .NET 6? If so, what package contains the definition for RadWebCam?
Thanks.