Hello.
I have built a perfectly functional usercontrol, which includes a radrichtextbox with htmldataprovider (pretty nice, pretty easy, works like a charm).
Now I need to expose it to some VB6 client :-/, so as I have done before, I just host it in a winforms form, add some COM interfaces, and it should work all the same (been there, done that...)
Well, no...
It keeps giving me this error:
Value cannot be null. Parameter name: formatProvider
at Telerik.Windows.Documents.FormatProviders.DataProviderBase..ctor(ITextBasedDocumentFormatProvider formatProvider, DependencyProperty stringProperty)
at Telerik.Windows.Documents.FormatProviders.Html.HtmlDataProvider..ctor()
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.InvokeDelegate(Action`1 action, Object argument)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CallCtorDelegate(XamlTypeInvoker type)
at System.Xaml.Schema.XamlTypeInvoker.DefaultCtorXamlActivator.CreateInstance(XamlTypeInvoker type)
at System.Xaml.Schema.XamlTypeInvoker.CreateInstance(Object[] arguments)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstanceWithCtor(XamlType xamlType, Object[] args)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object[] args)
I tried:
<telerik:HtmlFormatProvider x:Key="HtmlFormatProvider" />
<telerik:HtmlDataProvider RichTextBox="{Binding ElementName=SocialHistoriesHtml}" FormatProvider="{StaticResource HtmlFormatProvider}" Html="{Binding HTML}" />