public static void SetTargetProperty(SingleAnimationBase animation, string propertyName) { Storyboard.TargetProperties[animation] = propertyName; }
public static string GetTargetProperty(SingleAnimationBase animation) { return(Storyboard.TargetProperties.ContainsKey(animation) ? Storyboard.TargetProperties[animation] : null); }
public static void SetTarget(SingleAnimationBase animation, Control target) { Storyboard.Targets[animation] = target; }
public static Control GetTarget(SingleAnimationBase animation) { return(Storyboard.Targets.ContainsKey(animation) ? Storyboard.Targets[animation] : null); }