locked
Window rotation with Expression Blend 4 RRS feed

  • Question

  • Hi,

    in my WPF project i have to, on click button, rotate my window of 180° and, at the end of the operation, display a new window. I have create a new storyboard and i have used a behavior for rotate the window, but how can i do for close the old and open a new window?

    THANKS

    Thursday, August 26, 2010 8:30 AM

All replies

  • Add a handler to the completed event of your storyboard:

    AddHandler sb.Completed, AdressOf sb_Completed

    Private Sub sb_Completed()

    ' code: Close this Window and open new Window

    End Sub

     

    Thursday, August 26, 2010 12:43 PM
  • If I use the MVVM pattern, how can I declare the event in my ViewModel if i can't use the Command object?

    Thanks

    Thursday, August 26, 2010 2:29 PM
  • Could you please post your code?

    Friday, August 27, 2010 8:16 AM