Hey Greg,
You can't inherit ControlTemplate from theme style. But you don't have to. Use DataTemplates to achieve what you want. Here is a quick example:
<Page
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Page.Resources>
<Style TargetType="{x:Type ToolTip}">
<Style.Triggers>
<EventTrigger RoutedEvent="ToolTip.Loaded">
<BeginStoryboard>
<Storyboard TargetProperty="Opacity">
<DoubleAnimation From="0" To="0.8" Duration="0:0:0.5" />
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Style.Triggers>
</Style>
<DataTemplate x:Key="ToolTipContentTemplate">
<StackPanel>
<Label FontWeight="Bold" Background="DarkSlateBlue" Foreground="White">
WpfApplication1
</Label>
<Label>
Click to create another button
</Label>
</StackPanel>
</DataTemplate>
</Page.Resources>
<Grid>
<Button Content="Hello">
<Button.ToolTip>
<ToolTip ContentTemplate="{StaticResource ToolTipContentTemplate}">
<ToolTip.Content>
Doesn't matter in this case
</ToolTip.Content>
</ToolTip>
</Button.ToolTip>
</Button>
</Grid>
</Page>
You can paste it to Kaxaml, and test it.
Hope this helps.
Anvaka
2009-09-02 09:36:04