this is my code
public partial class MainWindow : Window
{
private Storyboard myStoryboard;
private Storyboard myStoryboard2;
public MainWindow()
{
InitializeComponent();
ThicknessAnimation myDoubleAnimation = new ThicknessAnimation();
myDoubleAnimation.From = (textBlock3.Margin = new Thickness(378, 0, 0, 0));
myDoubleAnimation.From = (SV.Margin = new Thickness(413, 0, 0, 0));
myDoubleAnimation.To = (textBlock3.Margin = new Thickness(28, 0, 0, 0));
myDoubleAnimation.To = (SV.Margin = new Thickness(35, 0, 0, 0));
myDoubleAnimation.Duration = new Duration(TimeSpan.FromSeconds(0.5));
myStoryboard = new Storyboard();
myStoryboard.Children.Add(myDoubleAnimation);
Storyboard.SetTargetName(myDoubleAnimation, textBlock3.Name);
Storyboard.SetTargetProperty(myDoubleAnimation, new PropertyPath(Rectangle.MarginProperty));
ThicknessAnimation myDoubleAnimation2 = new ThicknessAnimation();
myDoubleAnimation2.From = (Margin = new Thickness(28, 0, 0, 0));
myDoubleAnimation2.To = (Margin = new Thickness(378, 0, 0, 0));
myDoubleAnimation2.Duration = new Duration(TimeSpan.FromSeconds(0.5));
myStoryboard2 = new Storyboard();
myStoryboard2.Children.Add(myDoubleAnimation2);
Storyboard.SetTargetName(myDoubleAnimation2, textBlock3.Name);
Storyboard.SetTargetProperty(myDoubleAnimation2, new PropertyPath(Rectangle.MarginProperty));
}
now i just want 2 animations going at the same time, but with i do this code, nothing moves