This is a migrated thread and some comments may be shown as answers.

SelectionMiniToolBar, Icons missing

2 Answers 79 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 01 Mar 2013, 08:33 AM

We're using build 2013.1.255.1050 of the RichTextBox control within a Lightswitch project.
All references are set accordingly.

When a text is selected the SelectionMiniToolBar gets displayed but respective icons are missing. When we additionally include a RadRichTextBoxRibbonUI then everything works fine.

Any ideas how to resolve it?

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Iva Toteva
Telerik team
answered on 01 Mar 2013, 10:07 AM
Hi Markus,

We have observed this issue only in Lightswitch projects - the images are shown only if they are added to the visual tree on start-up. The problem does not occur when there is a RibbonUI, because the ribbon includes the images in XAML.

The workaround we can suggest to you for now is to declare the images in XAML. This means, you should have a line like this for all images which are used in the SelectionMiniToolBar and the ContextMenu in your .xaml file:

<Image Source="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/bold.png" Stretch="None"/>

The images can be collapsed or with Height/Width set to 0.

Here is the list of the used images in theSelectionMiniToolBar and the ContextMenu (please note, you should add in the beginning the  "/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16" string, as a part of the path to the following resources):

SelectionMiniToolBar:

  • font-increasesize.png
  • font-decreasesize.png
  • outdent.png
  • indent.png
  • bold.png
  • italic.png
  • underline.png
  • aligncenter.png
  • highlight.png
  • FontForeColor.png
  • list-bullets.png
  • list-numbered.png

 ContextMenu

  • cut.png
  • copy.png
  • paste.png
  • inserthyperlink.png
  • FontProperties.png
  • ParagraphProperties.png

I hope this helps.

All the best,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Markus
Top achievements
Rank 1
answered on 01 Mar 2013, 10:35 AM
that solved the issue.
Thx a lot
Tags
RichTextBox
Asked by
Markus
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Markus
Top achievements
Rank 1
Share this question
or