public static void SetTargetName(Timeline element, string name) { // NOTE: this throws a NRE if element is null, while name == null is a valid value // FIXME Exception if setting on running element.SetValue(TargetNameProperty, name); }
/// <summary> /// Writes the attached property DesiredFrameRate to the given Timeline. /// </summary> /// <param name="timeline">Timeline to which to write the attached property.</param> /// <param name="desiredFrameRate">The property value to set</param> /// <seealso cref="Timeline.DesiredFrameRateProperty" /> public static void SetDesiredFrameRate(Timeline timeline, Int32?desiredFrameRate) { if (timeline == null) { throw new ArgumentNullException("timeline"); } timeline.SetValue(DesiredFrameRateProperty, desiredFrameRate); }
public static void SetTargetProperty(Timeline element, PropertyPath path) { if (element == null) { throw new ArgumentNullException("element"); } if (path == null) { throw new ArgumentNullException("path"); } // FIXME Exception if setting on running element.SetValue(TargetPropertyProperty, path); }
public static void SetTargetProperty (Timeline element, PropertyPath path) { if (element == null) throw new ArgumentNullException ("element"); if (path == null) throw new ArgumentNullException ("path"); // FIXME Exception if setting on running element.SetValue (TargetPropertyProperty, path); }
public static void SetTargetName (Timeline element, string name) { // NOTE: this throws a NRE if element is null, while name == null is a valid value // FIXME Exception if setting on running element.SetValue (TargetNameProperty, name); }
/// <summary> /// Writes the attached property DesiredFrameRate to the given Timeline. /// </summary> /// <param name="timeline">Timeline to which to write the attached property.</param> /// <param name="desiredFrameRate">The property value to set</param> /// <seealso cref="Timeline.DesiredFrameRateProperty" /> public static void SetDesiredFrameRate(Timeline timeline, Int32? desiredFrameRate) { if (timeline == null) { throw new ArgumentNullException("timeline"); } timeline.SetValue(DesiredFrameRateProperty, desiredFrameRate); }
public static void SetTarget (Timeline d, string value) { d.SetValue(TargetProperty, value); }