WPF Popups and ToolTip Behavior – Implementation

January 15, 2009

tags: ,
no comments

In continuation to my first post –
WPF Popups and ToolTip behavior – A Journey

I decided to approach the implementation of such a popup like the ToolTip and ContextMenu are doing it themselves.
I did not inherit from Popup but rather created my own control and I used the Popup.CreateRootPopup which sets the Popup.Child property to my control and it picks up on all the ToolTipService properties defined on my control.

I started from reading the following post:
Popup your control

There were some problems with this pattern though, I had to overcome these with quite many event hooking which I’m not very happy about. At least it works for now 🙂

There is a way to improve the implementation, I could use mouse capturing but that introduced another set of problems so I left it as it is for the time being.

I will post my solution soon enough.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*