简体   繁体   中英

WPF ToolTip - How to show more than once

I have a slider with a tooltip:

<Slider x:Name="m_slider" ToolTipService.BetweenShowDelay="0" ToolTipService.InitialShowDelay="500" ToolTipService.ShowDuration="9999999">
    <Slider.ToolTip>
        <ToolTip>
            <StackPanel>
                <!--  .... -->
            </StackPanel>
        </ToolTip>
    </Slider.ToolTip>
</Slider>

When I click the slider, its tooltip disapears (which is ok). But when I move again the mouse over the slider it doesn't show up again. Only if I leave the slider and move back with the mouse cursor, tool tip appears again.

Is it possible (w/o using IsOpen property) to re-show the tool tip after it disappears (as if I went out and in again with the mouse)?

您可以连接一个滑块事件以创建一个以控件的工具提示为内容的弹出窗口。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM