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.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm
"danny" <danny[ at ]discussions.microsoft.com> wrote in message news:8D7B683F-38E8-4133-B804-1366E787DFBD[ at ]microsoft.com...
[Quoted Text] > 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? >
|