I get the following binding error coming from the SfRichTextBoxAdv:
Error 1 null ImageSource ImageBrush.ImageSource ImageSource Cannot find governing FrameworkElement or FrameworkContentElement for target element.
The problem comes from the "SuggestionBox", If I'm using an older version that v18.4.0.30 (Here the SuggestionBox was implemented) I don't get the error.
<local:SfRichTextBoxAdvExtension
x:Name="richTextBoxAdv"
Grid.Row="1"
EnableMiniToolBar="False"
LayoutType="Continuous"
Style="{StaticResource DefaultRichBoxStyle}"
HtmlText="{Binding Path=DataContext.MessageBody, RelativeSource={RelativeSource AncestorType=sirius:DialogView}, Mode=TwoWay}"/>
The style is not important, it also appears without it.
Avrigeanu, based on the provided code snippet, we can
confirm that you are using the SfRichTextBoxAdvExtension and HtmlText
property. However, you have mentioned two issues where the applied style is not
preserved, and a binding error is encountered. With the provided details, we
cannot reproduce both issues.
We have attached a sample application with SfRichTextBoxAdvExtension. Please
modify the shared sample to reproduce both issues so that we can validate and
update you with further details as soon as possible.
Here is the binding error, regarding the style not being applied there was no problem anymore.
Avrigeanu, we can reproduce the reported issue "Binding error is shown in the SfRichTextBoxAdv." We will validate this issue and update you with further details on 29th February 2024.
Avrigeanu, we are validating the reported issue with high priority, We will validate this issue and update you with further details within two working days on or before 4th March 2024.
We have confirmed the reported issue with "ImageBrush
binding error is shown in the SfRichTextBoxAdv" and have logged a
defect report in the SfRichTextBoxAdv control. The fix for this issue will be
included in the upcoming Essential Studio weekly NuGet release, estimated to be
available on 26th March 2024.
Please use the following feedback link to track the status of the reported
issue:
https://www.syncfusion.com/feedback/51449/imagebrush-binding-error-is-shown-in-the-sfrichtextboxadv
Avrigeanu,
as promised earlier, we have included the fix for the reported bug with “ImageBrush binding error is shown in the SfRichTextBoxAdv” in our latest weekly NuGet release (v25.1.37).
Root cause of the issue:
We have provided support for the auto-suggestion functionality, where we can
set the Name, link, and image for the auto-suggestion. We have a default
template in the code-behind designed to be shown in the UI when performing the
auto-suggestion.
This default template is initialized when the SfRichTextBoxAdv is initialized.
The template includes an ImageBrush control with its Image Source property
bound, which is initially null. If the SfRichTextBoxAdv is launched without the
auto-suggestion functionality, a binding error is shown.
Please use the below link to download our latest weekly NuGet:
https://www.nuget.org/packages/Syncfusion.SfRichTextBoxAdv.WPF/25.1.37
The status of this bug task can be tracked through the below link:
https://www.syncfusion.com/feedback/51449/imagebrush-binding-error-is-shown-in-the-sfrichtextboxadv