Author: jackson
Date: 2007-06-06 19:08:13 -0400 (Wed, 06 Jun 2007)
New Revision: 78792

Modified:
   trunk/moon/src/animation.cpp
   trunk/moon/src/animation.h
Log:

        Staring to add triggers



Modified: trunk/moon/src/animation.cpp
===================================================================
--- trunk/moon/src/animation.cpp        2007-06-06 22:46:33 UTC (rev 78791)
+++ trunk/moon/src/animation.cpp        2007-06-06 23:08:13 UTC (rev 78792)
@@ -384,6 +384,14 @@
 }
 
 
+DependencyProperty* BeginStoryboard::StoryboardProperty;
+
+BeginStoryboard *
+begin_storyboard_new ()
+{
+       return new BeginStoryboard ();
+}
+
 DependencyProperty* DoubleAnimation::ByProperty;
 DependencyProperty* DoubleAnimation::FromProperty;
 DependencyProperty* DoubleAnimation::ToProperty;
@@ -435,5 +443,7 @@
                                                                         
Value::STRING);
        Storyboard::TargetNameProperty     = DependencyObject::Register 
(Value::STORYBOARD, "TargetName", 
                                                                         
Value::STRING);
-       
+
+       /* BeginStoryboard properties */
+       BeginStoryboard::StoryboardProperty = DependencyObject::Register 
(Value::BEGINSTORYBOARD, "Storyboard", Value::STORYBOARD);
 }

Modified: trunk/moon/src/animation.h
===================================================================
--- trunk/moon/src/animation.h  2007-06-06 22:46:33 UTC (rev 78791)
+++ trunk/moon/src/animation.h  2007-06-06 23:08:13 UTC (rev 78792)
@@ -130,6 +130,19 @@
 char* storyboard_child_get_target_name (Storyboard *sb,
                                        DependencyObject *o);
 
+class BeginStoryboard : public TriggerAction {
+
+ public:
+       BeginStoryboard ()
+       {
+               SetObjectType (Value::BEGINSTORYBOARD);
+       }
+
+       static DependencyProperty* StoryboardProperty;
+};
+
+BeginStoryboard *begin_storyboard_new ();
+
 class DoubleAnimation : public Animation {
  public:
 

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

Reply via email to