Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm using this library for transitions: https://code.google.com/p/dot-net-transitions/

I'm trying to handle this event: https://code.google.com/p/dot-net-transitions/wiki/CodingWithTransitions#Using_the_TransitionCompletedEvent

It says its raised by the background transition thread when the transition is conpleted. it isnt being raised though. Also, how do you specify which transition you want to raise the event?

I'm trying to code it in VB but its not working. Can anyone give me an example of how its done?

Here is my code:

VB
Public Sub ClosingTranstitions()
    Opacity = 1

    Dim tr_form = New Transition(New TransitionType_EaseInEaseOut(200))
    tr_form.add(Me, "Opacity", 0.0)

    Dim tr_Title = New Transition(New TransitionType_EaseInEaseOut(200))
    tr_Title.add(Title, "Left", 0)

    Dim tr_Content = New Transition(New TransitionType_EaseInEaseOut(300))
    tr_Content.add(Content, "Left", -10)

    tr_Title.run()
    tr_form.run()
    tr_Content.run()

End Sub

Public Event TransitionCompletedEvent As EventHandler(Of Transition.Args) 'This event is raised when transitions are complete

Private Sub theHandlerFunction(sender As Object, args As Transition.Args) Handles Me.TransitionCompletedEvent
    MsgBox("Closing")
End Sub

Thanks.
Posted
Comments
[no name] 2-Jun-13 6:55am    
Why are you not asking the author of the library about his code?
Ivel97 2-Jun-13 9:33am    
Thanks, I didn't think of that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900