Controls not notified when customtaskpane is resized

D

danny

Hi,

I have a CTP that contains my WPF control.

When the CTP is resized by the user, my control is not notified on the size
changes.

Any ideas?
 
K

Ken Slovak - [MVP - Outlook]

If you cast the ContentControl of the CTP to a forms Control object does it
cause an exception? If not then you might be able to do that and subscribe
to the SizeChanged() event.

If that doesn't work then you might just have to use a hack of finding your
CTP as a window using a Win32 API call and then hook to any message sent to
that window. Then you can look for a resize message sent to the window and
respond accordingly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top