jmcilhinney has made that API easier available here: Animate Window Control - VBForums
Not sure how/if that works with WPF though. (a window handle is available using WindowInteropHelper class)
WPF however has lots of built in support for animation, see for example Animation Overview
Here's one basic example derived from one of the examples there, something you can put in the windows constructor or Loaded event handler:
Dim animation As New DoubleAnimation()
With animation
.From = -300
.To = 300
.Duration = New Duration(TimeSpan.FromMilliseconds(500))
End With
Me.BeginAnimation(Window.LeftProperty, animation)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.