Exemplo n.º 1
0
        /// <summary>
        /// Reads the attached property DesiredFrameRate from the given Timeline.
        /// </summary>
        /// <param name="timeline">Timeline from which to read the attached property.</param>
        /// <returns>The property's value.</returns>
        /// <seealso cref="Timeline.DesiredFrameRateProperty" />
        public static Int32?GetDesiredFrameRate(Timeline timeline)
        {
            if (timeline == null)
            {
                throw new ArgumentNullException("timeline");
            }

            return((Int32?)timeline.GetValue(DesiredFrameRateProperty));
        }
Exemplo n.º 2
0
        public static PropertyPath GetTargetProperty(Timeline element)
        {
            if (element == null)
            {
                throw new ArgumentNullException("element");
            }

            return((PropertyPath)element.GetValue(TargetPropertyProperty));
        }
Exemplo n.º 3
0
 public static string GetTargetName(Timeline element)
 {
     return((string)element.GetValue(TargetNameProperty));
 }
Exemplo n.º 4
0
		public static PropertyPath GetTargetProperty (Timeline element)
		{
			if (element == null)
				throw new ArgumentNullException ("element");

			return (PropertyPath) element.GetValue (TargetPropertyProperty);
		}
Exemplo n.º 5
0
		public static string GetTargetName (Timeline element)
		{
			return (string) element.GetValue (TargetNameProperty);
		}
Exemplo n.º 6
0
        /// <summary>
        /// Reads the attached property DesiredFrameRate from the given Timeline.
        /// </summary>
        /// <param name="timeline">Timeline from which to read the attached property.</param>
        /// <returns>The property's value.</returns>
        /// <seealso cref="Timeline.DesiredFrameRateProperty" />
        public static Int32? GetDesiredFrameRate(Timeline timeline)
        {
            if (timeline == null) { throw new ArgumentNullException("timeline"); }

            return (Int32?)timeline.GetValue(DesiredFrameRateProperty);
        }
Exemplo n.º 7
0
 public static string GetTarget (Timeline d)
 {
     return (string)d.GetValue(TargetProperty);
 }