Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        /// <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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
		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);
		}
Esempio n. 5
0
		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);
		}
Esempio n. 6
0
        /// <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);
        }
Esempio n. 7
0
 public static void SetTarget (Timeline d, string value)
 {
     d.SetValue(TargetProperty, value);
 }