Remove tooltips from header and standard palettes

2 posts, 0 answers
  1. David
    David avatar
    1 posts
    Member since:
    Jul 2013

    Posted 01 Jul 2013 Link to this post

    I have successfully used a solution provided in this forum to remove the ARGB tooltip from the main palette of a ColorPicker (  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: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: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}"/>

    Thanks for your help!
    David Magill
    Virtify, Inc.
  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 03 Jul 2013 Link to this post

    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!

    Iva Toteva
    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 >>
Back to Top