问题描述
我想在图像上显示工具提示。我正在使用MultiConverter。
但转换器仅在页面加载时被调用。
我的要求是我想在鼠标悬停在图像上时每次调用转换器。
< Image.ToolTip>
< tooltip hasdropshadow =True>
< ; border horizontalalignment =Stretch>
BorderThickness =0,0,0,1>
< textblock fontfamily =Consolastextwrapping =WrapWithOverflow width =600>
< textblock.text>
< multibinding converter ={StaticResource toolTipConverter}>
< binding path =Culture>
< /Image.ToolTip>
I want to display tooltip on image. i am using MultiConverter for the same.
But Converter gets called only on Page load.
My requirement is i want to call converter every times when i do mouse over on image.
<Image.ToolTip>
<tooltip hasdropshadow="True">
<border horizontalalignment="Stretch">
BorderThickness="0,0,0,1">
<textblock fontfamily="Consolas" textwrapping="WrapWithOverflow" width="600">
<textblock.text>
<multibinding converter="{StaticResource toolTipConverter}">
<binding path="Culture">
</Image.ToolTip>
推荐答案
这篇关于工具提示绑定到图像标记内的Textblock,不会在每个鼠标悬停时调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!