I am showing a Tool Tip when Mouse hovers on Help image.
The xaml is given below:
EventManager.RegisterClassHandler(typeof(Window), Mouse.MouseDownEvent,
new MouseButtonEventHandler((o, args) =>
{
if (_popup.IsOpen)
_popup.IsOpen = false;
}));
You can force the tool tip to open by setting ToolTip.IsOpen to true. You can get a reference to the ToolTip object by explicitly constructing one when setting the ToolTip property. Instead of
<Image.ToolTip>
<Grid>
...
</Grid>
</Image.ToolTip>
write
<Image.ToolTip>
<ToolTip>
<Grid>
...
</Grid>
</ToolTip>
</Image.ToolTip>
And then in your MouseUp handler do something like:
((ToolTip)((FrameworkElement)sender).ToolTip).IsOpen = true;
OnClick set visibility of tooltip true and in ToolTipClosing set visibility c
....
No you can't invoked the tooltip on mouseclick. Instead of using Tooltip, you can use Popup control. Invoke the Popup Control on mouse click.