I know I can set the tooltip in a template like so:
The resource is:
<DataTemplate x:Key="MyTabTemplate">
<ContentPresenter Content="{Binding}" Margin="2,0,0,0" >
<ToolTipService.ToolTip>
<ToolTip Content="{Binding}"></ToolTip>
</ToolTipService.ToolTip>
</ContentPresenter>
</DataTemplate>
Code:
HeaderTemplate = ((
MainPage)App.Current.RootVisual).Resources["MyTabTemplate"] as DataTemplate;
More code:
string sTip = "My Tooltip is dynamic: " + dynamicTip;
ToolTipService
.SetToolTip(this, sTip); // Sets the tab tooltip
ToolTipService.SetToolTip(?, sTip); // How do I set the header tooltip????
>>>that way you will be able to
set the ToolTip in code behind.
How???
Thanks.