Posted 14 Dec 2010 Link to this post
<
documentsHtml:HtmlDataProvider
x:Key
=
"htmlDataProvider"
RichTextBox
"{Binding ElementName=richTextBox}"
Html
"{Binding Path=SelectedMessage.NewText, Mode=TwoWay}"
SetupDocument
"HtmlDataProvider_SetupDocument"
/>
telerik:RadRibbonComboBox
CanAutocompleteSelectItems
"False"
CanKeyboardNavigationSelectItems
CommandParameter
"{Binding SelectedItem.Tag, RelativeSource={RelativeSource Self}}"
Height
"21"
IsEditable
IsReadOnly
"True"
OpenDropDownOnFocus
telerik:RadRichTextBoxRibbonUI.RichTextCommand
"{Binding ChangeFontSizeCommand}"
Width
"45"
DataContext
>
Posted 16 Dec 2010 Link to this post
Currently HtmlDataProvider expects to get the font properties from the Source of the binding, specified in the Html property. The default FontFamily in HTML is Times New Roman and the FontSize is 12, hence your ComboBox's 12. We have considered reviewing this behavior and have decided to include an option for applying the default font properties, defined on RadRichTextBox, onto paragraphs and spans of the document that do not set them explicitly. This change, though, will most probably not appear in the service pack, but in a next release. If you have any other questions, do not hesitate to contact us again.
Posted 20 Dec 2010 Link to this post
Posted 23 Dec 2010 Link to this post