开发者

WPF ToolTip - How to show more than once

开发者 https://www.devze.com 2023-02-27 16:52 出处:网络
I have a slider with a tooltip: <Slider x:Name=\"m_slider\" ToolTipService.BetweenShowDelay=\"0\" ToolTipService.InitialShowDelay=\"500\" ToolTipService.ShowDuration=\"9999999\">

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 m开发者_如何学运维ove 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)?


You could wire up one of the sliders events to create a popup window with the control's tooltip as its contents.

0

精彩评论

暂无评论...
验证码 换一张
取 消