Is there a way to add a tooltip to the pin icon?

2 posts, 0 answers
  1. Kjell
    Kjell avatar
    283 posts
    Member since:
    Jun 2010

    Posted 27 Dec 2011 Link to this post

    This is for the radPane control.  Thanks.
  2. Dani
    Dani avatar
    848 posts

    Posted 28 Dec 2011 Link to this post

    Hello Kjell,

    The Pin and Unpin icons are regular RadButtons and you can easily add a tooltip to them using the ToolTipService.ToolTip property:
    <telerik:RadButton x:Name="HeaderPinButton" ToolTipService.ToolTip="Pin"
                            CommandParameter="{Binding SelectedPane, RelativeSource={RelativeSource TemplatedParent}}" 
                            Command="telerikDocking:RadDockingCommands.Pin" Style="{StaticResource PaneHeader_PinButtonStyle}"/>
                            <telerik:RadButton x:Name="HeaderUnPinButton" ToolTipService.ToolTip="Unpin"
                            CommandParameter="{Binding SelectedPane, RelativeSource={RelativeSource TemplatedParent}}" 
                            Command="telerikDocking:RadDockingCommands.Pin" Style="{StaticResource PaneHeader_UnPinButtonStyle}" Visibility="Collapsed"/>

    Both buttons are located in the template of the PaneHeader, which is part of the RadPaneGroup. When you generate the template for RadPaneGroup and then the template for PaneHeader, you will find both buttons inside.

    Please, keep in mind that you will need to add the tooltips to the auto-hide areas as well, if you want them to be visible when a pane is unpinned.

    Kind regards,
    the Telerik team
    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Back to Top