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

Remove tooltips from header and standard palettes

1 Answer 91 Views
ColorPicker
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 01 Jul 2013, 07:50 PM
I have successfully used a solution provided in this forum to remove the ARGB tooltip from the main palette of a ColorPicker (http://www.telerik.com/community/forums/silverlight/colorpicker/remove-palette-item-tooltip.aspx).  However, I also need to remove the tooltips from the header and standard palettes.  The solution provided in the earlier thread does not work for me, as I have three separate ribbon buttons using the ColorPicker style.  They all need different images which I am providing, but when I apply the colorpickerStyle from the solution, the custom images are lost and the ColorPicker fails to open when clicking the dropdown, crashing the editor.

Here is my relevant XAML, using the styles provided in the above solution:
<telerik:RadButtonGroup>
<telerik:HighlightColorPicker Name="ColorPicker" AutomaticColor="Transparent" Height="22" Image="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/highlight.png" NoColorText="No color" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontHighlightColorCommand}" telerik:ScreenTip.Description="Make text look like it was marked with a highlighter pen." telerik:ScreenTip.Title="Text Highlight Color" SelectedColor="Yellow" MainPaletteItemsStyle="{StaticResource itemsStyle}"/>
<telerik:HighlightColorPicker Height="22" Image="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/FontForeColor.png" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeFontForeColorCommand}" telerik:ScreenTip.Description="Change the text color." telerik:ScreenTip.Title="Font Color" SelectedColor="Red" Style="{StaticResource colorpickerStyle}"/>
</telerik:RadButtonGroup>
...
<telerik:RadButtonGroup>
<telerik:HighlightColorPicker AutomaticColor="Transparent" BorderThickness="0" MaxHeight="36" Height="20" Image="/Telerik.Windows.Controls.RichTextBoxUI;component/Images/MSOffice/16/ParagraphBackgroundColor.png" NoColorText="No color" telerik:RadRichTextBoxRibbonUI.RichTextCommand="{Binding Path=ChangeParagraphBackgroundColorCommand}" telerik:ScreenTip.Description="Color the background behind the selected text or paragraph." telerik:ScreenTip.Title="Shading" SelectedColor="Transparent" MainPaletteItemsStyle="{StaticResource itemsStyle}"/>
</telerik:RadButtonGroup>

Thanks for your help!
David Magill
Virtify, Inc.

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 03 Jul 2013, 04:12 PM
Hi David,

The forum thread you have quoted lists the steps for removing the tooltip for older version of the controls and does not reflect the latest changes. That is why with the latest version when the dropdown opens, the application crashes.

When it comes to the images, RadColorPicker does not support images. HighlighColorPicker is an extension of RadColorPicker and it provides the image changing capability. Therefore, if you set the Style of HighlightColorPicker to a style targeting RadColorPicker, there would be problems with the images.

On the other hand, in order to remove the tooltips of the palette items, you can follow the guidelines of this article. There is also an example in our XAML SDK examples.

I hope this helps!

Regards,
Iva Toteva
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ColorPicker
Asked by
David
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or