views:

110

answers:

0

Happy friday folks, awesome.

I am currently writing a small tooltip mimicking control to display inline help in an application. I was going to just use standard tooltips but decided that I potentially wanted interactivity.

I have it working no problem. Its quite literally an implementation of ContentControl with a ControlTemplate triggered to to open up a popup when you mouse over. So far, so easy.

My problem is that I want this control to function well in the designers of both blend and Visual Studio. The Popup control has a feature where if you select it's content in the designer, the Popup opens. The same goes for other controls with a Popup implementation such as Combobox.

Can anyone tell me exactly how this designer functionality works? I tried hooking up to exposed events like 'IsKeyboardFocusWithin' through both the event and triggers but no luck. I am starting to think it is some static black magic buried in a designer dll but have had no luck unearthing it.