Clickable tooltip
-
I am making a custom tooltip control, (derived ftom tooltip), and wondering if there is some simple way to make the tip clickable, (url and close button). I have managed to 'fake' it, using mouse capture and previewmousemove, but wondering if there was an easier way? Thanks, j
-
I am making a custom tooltip control, (derived ftom tooltip), and wondering if there is some simple way to make the tip clickable, (url and close button). I have managed to 'fake' it, using mouse capture and previewmousemove, but wondering if there was an easier way? Thanks, j
-
If only it were that easy.. I have tried deriving the control from other elements, but if you use the tooltip in a standard way, (as below), it does not work correctly. I have managed to get this working using capture and manipulating mouse input, good enough for now unless another solution becomes available.. thanks
<Button.ToolTip> <vht:vhToolTip HasDropShadow="True" Opacity="0.9" Header="Test Header: Tip 3" Hyperlink="http://www.the-noc.net" Text="this is just a bunch of tooltip text" ImageSource="/Images/13.ico" HasCloseButton="True" HyperlinkClicked="vhToolTip\_HyperlinkClicked"/> </Button.ToolTip> </Button>
-
If only it were that easy.. I have tried deriving the control from other elements, but if you use the tooltip in a standard way, (as below), it does not work correctly. I have managed to get this working using capture and manipulating mouse input, good enough for now unless another solution becomes available.. thanks
<Button.ToolTip> <vht:vhToolTip HasDropShadow="True" Opacity="0.9" Header="Test Header: Tip 3" Hyperlink="http://www.the-noc.net" Text="this is just a bunch of tooltip text" ImageSource="/Images/13.ico" HasCloseButton="True" HyperlinkClicked="vhToolTip\_HyperlinkClicked"/> </Button.ToolTip> </Button>
If I were you, I'd look at substituting this by using the AdornerLayer and creating a mocked up tooltip that gives you the elements you want.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
If I were you, I'd look at substituting this by using the AdornerLayer and creating a mocked up tooltip that gives you the elements you want.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
Hey Pete, Do you mean scrap the custom control all together?
-
Hey Pete, Do you mean scrap the custom control all together?
Not quite - I mean show your control in the AdornerLayer in place of showing the ToolTip.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Not quite - I mean show your control in the AdornerLayer in place of showing the ToolTip.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
That's a thought.. I'll try it out thanks
-
That's a thought.. I'll try it out thanks
Good luck. Let me know how you're getting on.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.