Telerik Forums
UI for WPF Forum
1 answer
10 views

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>

Martin Ivanov
Telerik team
 answered on 03 May 2024
0 answers
8 views


<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?

Paul
Top achievements
Rank 2
Iron
Iron
Iron
 asked on 02 May 2024
0 answers
12 views
Please help me to create the shape given in the image
Parth
Top achievements
Rank 1
Iron
Iron
 asked on 01 May 2024
1 answer
8 views
How to restrict the start and end times of an appointment to be at least 10 minutes apart as an integer multiple (e.g., 10, 20, 30, etc.)?
Stenly
Telerik team
 answered on 01 May 2024
0 answers
19 views

How can I show animation like the following video in diagram control with pause and play option?
sunita
Top achievements
Rank 1
 asked on 30 Apr 2024
0 answers
14 views

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!

boon
Top achievements
Rank 1
 updated question on 29 Apr 2024
0 answers
9 views
In a Telerik WPF project, how to configure RadScheduleView to display the preview position of a dragged appointment at a specified time interval (e.g., 20 minutes)?
Denny
Top achievements
Rank 1
 asked on 29 Apr 2024
1 answer
12 views
Which type of control can be used to create control as per image and How ? 
Dimitar
Telerik team
 answered on 25 Apr 2024
0 answers
4 views
Which type of control can be used to create control as per image and How ?
Parth
Top achievements
Rank 1
Iron
Iron
 asked on 25 Apr 2024
1 answer
6 views

Is Telerik WPF WebCam control supported in .NET 6? If so, what package contains the definition for RadWebCam?

Thanks.

Mark
Top achievements
Rank 1
Iron
 answered on 24 Apr 2024
Narrow your results
Selected tags
Tags
+? more
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Mark
Top achievements
Rank 1
Yurii
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Hon
Top achievements
Rank 1
Iron
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?