I've been using the RadRichTextBox on my Silverlight 5 LOB app for a long time, and some time back had to make a change that I got from the forums/examples here to get the Mini toolbar to come up since I'm not using a ribbon.
Just today people started noticing that depending upon where (vertically) in the RTB the text is, they may or may not be able to change the font via the mini toolbar. In testing in the full app, it appears if the mini toolbar is outside the border of the RTB, I can't change the font... this is very similar to a Filter issue I reported in WPF last week.
In this case, and based on the response I got from the WPF post, Ive put together an extremely small SL5 app that I can attach here. The app consists of a Grid containing one RTB. The Grid is centered on the browser, and in this example, you cannot change the font no matter what line you're on.
We are using 2013.1.220.1050
Thanks in advance
-Dave
huh... guess I thought we could upload projects zipped... but no... so in that case, here's the xaml:
and here's the code behind:
Just today people started noticing that depending upon where (vertically) in the RTB the text is, they may or may not be able to change the font via the mini toolbar. In testing in the full app, it appears if the mini toolbar is outside the border of the RTB, I can't change the font... this is very similar to a Filter issue I reported in WPF last week.
In this case, and based on the response I got from the WPF post, Ive put together an extremely small SL5 app that I can attach here. The app consists of a Grid containing one RTB. The Grid is centered on the browser, and in this example, you cannot change the font no matter what line you're on.
We are using 2013.1.220.1050
Thanks in advance
-Dave
huh... guess I thought we could upload projects zipped... but no... so in that case, here's the xaml:
<
UserControl
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
x:Class
=
"SLDemoApp.MainPage"
mc:Ignorable
=
"d"
d:DesignHeight
=
"300"
d:DesignWidth
=
"400"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
HorizontalAlignment
=
"Center"
VerticalAlignment
=
"Center"
>
<
telerik:RadRichTextBox
x:Name
=
"richTextBox2"
Width
=
"500"
Height
=
"150"
/>
</
Grid
>
</
UserControl
>
and here's the code behind:
using
System;
using
System.Collections.Generic;
using
System.Linq;
using
System.Windows.Controls;
using
Telerik.Windows.Controls.RichTextBoxUI;
using
Telerik.Windows.Controls.RichTextBoxUI.Dialogs;
namespace
SLDemoApp
{
public
partial
class
MainPage : UserControl
{
public
MainPage()
{
InitializeComponent();
richTextBox2.FindReplaceDialog =
new
FindReplaceDialog();
richTextBox2.InsertHyperlinkDialog =
new
RadInsertHyperlinkDialog();
richTextBox2.ParagraphPropertiesDialog =
new
RadParagraphPropertiesDialog();
richTextBox2.InsertSymbolWindow =
new
RadInsertSymbolDialog();
richTextBox2.ContextMenu =
new
Telerik.Windows.Controls.RichTextBoxUI.ContextMenu();
richTextBox2.SelectionMiniToolBar =
new
SelectionMiniToolBar();
richTextBox2.InsertTableDialog =
new
InsertTableDialog();
richTextBox2.TablePropertiesDialog =
new
TablePropertiesDialog();
richTextBox2.FontPropertiesDialog =
new
FontPropertiesDialog();
}
}
}