I need to convert xaml code to c#
I have two animation xaml code,
first fade in animation :
in xaml :
Storyboard.TargetProperty=”(UIElement.Opacity)”
in c# : Storyboard.SetTargetProperty(myDoubleAnimation, new PropertyPath(Rectangle.OpacityProperty));
second moving animation
in xaml :
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)"
How to convert that second xaml code to c# TargetProperty?
You have two options to create that PropertyPath: