Author: toshok
Date: 2007-12-09 17:04:22 -0500 (Sun, 09 Dec 2007)
New Revision: 91014

Modified:
   
trunk/olive/class/PresentationCore/System.Windows.Media.Animation/gen-animation-types.cs
Log:
output animation dependency properties, untested values.

Modified: 
trunk/olive/class/PresentationCore/System.Windows.Media.Animation/gen-animation-types.cs
===================================================================
--- 
trunk/olive/class/PresentationCore/System.Windows.Media.Animation/gen-animation-types.cs
    2007-12-09 20:02:42 UTC (rev 91013)
+++ 
trunk/olive/class/PresentationCore/System.Windows.Media.Animation/gen-animation-types.cs
    2007-12-09 22:04:22 UTC (rev 91014)
@@ -187,9 +187,12 @@
                tw.WriteLine (@"
 public class {0}Animation : {0}AnimationBase
 {{
-       public static readonly DependencyProperty ByProperty; /* XXX initialize 
*/
-       public static readonly DependencyProperty FromProperty; /* XXX 
initialize */
-       public static readonly DependencyProperty ToProperty; /* XXX initialize 
*/
+       public static readonly DependencyProperty ByProperty
+                               = DependencyProperty.Register (""By"", typeof 
({1}), typeof ({0}KeyFrame));
+       public static readonly DependencyProperty FromProperty
+                               = DependencyProperty.Register (""From"", typeof 
({1}), typeof ({0}KeyFrame));
+       public static readonly DependencyProperty ToProperty
+                               = DependencyProperty.Register (""To"", typeof 
({1}), typeof ({0}KeyFrame));
 
        public {0}Animation ()
        {{
@@ -381,9 +384,12 @@
                tw.WriteLine (@"
 public abstract class {0}KeyFrame : Freezable, IKeyFrame
 {{
-       public static readonly DependencyProperty KeyTimeProperty; /* XXX 
initialize */
-       public static readonly DependencyProperty ValueProperty; /* XXX 
initialize */
+       public static readonly DependencyProperty KeyTimeProperty
+                               = DependencyProperty.Register (""KeyTime"", 
typeof (KeyTime), typeof ({0}KeyFrame));
 
+       public static readonly DependencyProperty ValueProperty
+                               = DependencyProperty.Register (""Value"", 
typeof ({1}), typeof ({0}KeyFrame));
+
        protected {0}KeyFrame ()
        {{
        }}
@@ -695,7 +701,8 @@
 public class Spline{0}KeyFrame : {0}KeyFrame
 {{
 
-       public static readonly DependencyProperty KeySplineProperty; // XXX 
initialize
+       public static readonly DependencyProperty KeySplineProperty =
+               DependencyProperty.Register (""KeySpline"", typeof (KeySpline), 
typeof (Spline{0}KeyFrame));
 
        {1} value;
        KeyTime keyTime;

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to