The attachable property 'ToolTip' was not found in type 'ToolTipService'.

Topics: open request, question
Nov 22, 2011 at 12:35 AM
Edited Nov 22, 2011 at 12:36 AM

Using the downloaded DLL version 2.20 in a clean test project all works fine.  However, when trying to use the same code and DLL in a more complicated project with multiple views I get the error:

"The attachable property 'ToolTip' was not found in type 'ToolTipService'.  The tooltip code that I placed in my XAML file is very simple as shown below.  Anybody have any ideas where I can start looking for why this error is thrown at run-time.

xmlns:controls="clr-namespace:Silverlight.Controls.ToolTips;assembly=Silverlight.Controls.ToolTips"
 
 <Rectangle Height="100" Width="100" Fill="Green">
     <controls:ToolTipService.ToolTip>
         <controls:ToolTip InitialDelay="00:00:02" DisplayTime="00:00:002">
             <controls:ToolTip.Content>
                 <TextBlock Text="Hello world"/>
             </controls:ToolTip.Content>
         </controls:ToolTip>
     </controls:ToolTipService.ToolTip>
</Rectangle>
Dec 1, 2011 at 2:23 PM
Edited Dec 1, 2011 at 2:26 PM

I'm having the same issue.

        <DataTemplate x:Key="ChargeListItemTemplate">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="15"/>
                    <ColumnDefinition Width="38"/>
                    <ColumnDefinition Width="100"/>
                    <ColumnDefinition Width="30"/>
                </Grid.ColumnDefinitions>
               
                <tooltip:ToolTipService.ToolTip>
                <tooltip:ToolTip DisplayTime="00:01:00" InitialDelay="00:00:03" x:Name="greenTooltip">

                <tooltip:ToolTip.CloseAnimation>
                <Storyboard Duration="00:00:01">
                <DoubleAnimation From="1" To="0" Storyboard.TargetName="greenTooltip" Storyboard.TargetProperty="Opacity"/>
                </Storyboard>
                </tooltip:ToolTip.CloseAnimation>

                <tooltip:ToolTip.OpenAnimation>
                <Storyboard Duration="00:00:01">
                <DoubleAnimation From="0" To="1" Storyboard.TargetName="greenTooltip" Storyboard.TargetProperty="Opacity"/>
                </Storyboard>
                </tooltip:ToolTip.OpenAnimation>

                <tooltip:ToolTip.Content>
                <StackPanel Margin="5" >
                <TextBlock Text="{Binding ItemTooltip}" TextWrapping="Wrap" Width="200"/>
                </StackPanel>
                </tooltip:ToolTip.Content>

                </tooltip:ToolTip>
                </tooltip:ToolTipService.ToolTip>
               
                <CheckBox d:LayoutOverrides="Height" IsChecked="{Binding isSelected, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" Style="     {StaticResource CheckBoxStyle1}"/>
                <sdk:Label Margin="2,0,0,0" Content="{Binding ItemCode}" HorizontalAlignment="Left" Grid.Column="1" FontSize="10" VerticalAlignment="Bottom"/>
                <TextBlock Text="{Binding ItemDescription}" Margin="2,0"  Grid.Column="2" FontSize="8" VerticalAlignment="Bottom" />
                <TextBox TextWrapping="Wrap" Height="18" Grid.Column="3" HorizontalAlignment="Center"/>

            </Grid>

        </DataTemplate>

Mar 6, 2012 at 1:21 AM

Same here. Oh well. Off to try something different . . .