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

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

1 Answer 20 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Kjell asked on 27 Dec 2011, 09:26 PM
This is for the radPane control.  Thanks.

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 28 Dec 2011, 11:03 AM
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,
Dani
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Docking
Asked by
Kjell
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or