Private Sub btnStartMoving_Click(sender As Object, e As RoutedEventArgs) Handles btnStartMoving.Click 'Move up the MyRecElem which is the element I need to move up. Dim DAMyRecElem = New DoubleAnimation With { .From = 3, .To = 150, .FillBehavior = FillBehavior.HoldEnd, .BeginTime = TimeSpan.FromSeconds(0), .Duration = New Duration(TimeSpan.FromSeconds(1)), .EasingFunction = New PowerEase With { .EasingMode = EasingMode.EaseOut }} Dim storyboardMyRecElem = New Storyboard() Storyboard.SetTarget(DAMyRecElem, MyRecElem) Storyboard.SetTargetProperty(DAMyRecElem, New PropertyPath(TranslateTransform.YProperty)) storyboardMyRecElem.Children.Add(DAMyRecElem) storyboardMyRecElem.Begin() End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)