Controls not notified when customtaskpane is resized

  • Thread starter Thread starter danny
  • Start date Start date
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?
 
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.
 
Back
Top