locked
Resized event, move object based on plugin container dimension RRS feed

  • Question

  • Hi guys, I would move an user control element based on plugin dimension.

    I've registered for resized event but I'm not be able to get the dimensions of the browser when the user has finished resizing it.

    App.Current.Host.Content.ActualWidth or App.Current.Host.Content.ActualHeight always measure width and height before the browser resizing. Is there a mechanism to retrieve width and height after the resizing?

     Thanks. Regards.

    Monday, May 31, 2010 10:18 AM

Answers

  • Hi there,

     actually, handling the App.Current.Host.Content.Resized event should give you the correct dimensions in App.Current.Host.Content.ActualWidth/-Height.

    The event may be fired multiple times though during resizing. Maybe you only saw the very first event in the debugger?

    Cheers, Alex

    Monday, May 31, 2010 10:34 AM