2013-10-24 24 views
0

我在列表控件的图像上添加工具提示文本。在图像控件上添加工具提示

<Image Name="testimage1" Visibility="Visible" Height="30" Width="30" Source="/Assets/icons/files.png" Margin="0,0,10,0"> 
    <ToolTipService.ToolTip> 
     <ToolTip Content="test content"></ToolTip> 
    </ToolTipService.ToolTip> 
</Image> 

但工具提示没有得到显示。任何人都可以在这里帮忙。

感谢

回答

0

正如您在评论中提到的那样,Windows Phone上没有任何工具提示。当没有真正的悬停时,你会发现显示工具提示会发生什么?

您可以尝试提及的方法here

0

您可以在C#这样的工具提示属性。

ToolTip="Test Content" 

<Image Name="testimage1" Visibility="Visible" Height="30" Width="30" Source="/Assets/icons/files.png" Margin="0,0,10,0" ToolTip="Test Content"> 
+0

ToolTip属性在Windows Phone工具包中不可用。我也尝试通过使用ToolTipService.ToolTip作为 Priti