Author: jackson
Date: 2007-06-07 04:09:15 -0400 (Thu, 07 Jun 2007)
New Revision: 78822

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/runtime.cpp
   trunk/moon/src/runtime.h
Log:

        * runtime.cpp|h: Some pieces of the triggers framework.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-07 07:56:22 UTC (rev 78821)
+++ trunk/moon/src/ChangeLog    2007-06-07 08:09:15 UTC (rev 78822)
@@ -1,5 +1,9 @@
 2007-06-07  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * runtime.cpp|h: Some pieces of the triggers framework.
+
+2007-06-07  Jackson Harper  <[EMAIL PROTECTED]>
+
        * xaml.cpp: Handle repeat behaviors, lookup attached properties.
 
 2007-06-06  Chris Toshok  <[EMAIL PROTECTED]>

Modified: trunk/moon/src/runtime.cpp
===================================================================
--- trunk/moon/src/runtime.cpp  2007-06-07 07:56:22 UTC (rev 78821)
+++ trunk/moon/src/runtime.cpp  2007-06-07 08:09:15 UTC (rev 78822)
@@ -1029,13 +1029,24 @@
        UIElement::RenderTransformProperty = DependencyObject::Register 
(Value::UIELEMENT, "RenderTransform", Value::TRANSFORM);
 }
 
+DependencyProperty* EventTrigger::ActionsProperty;
+DependencyProperty* EventTrigger::RoutedEventProperty;
+
 void
+event_trigger_init ()
+{
+//     EventTrigger::ActionsProperty = DependencyObject::Register 
(Value::EVENTTRIGGER, "Actions", Value::TRIGGERACTIONCOLLECTION);
+//     EventTrigger::RoutedEventProperty = DependencyObject::Register 
(Value::EVENTTRIGGER, "RoutedEvent", Value::ROUTEDEVENT);
+}
+
+void
 runtime_init ()
 {
        namescope_init ();
        item_init ();
        framework_element_init ();
        canvas_init ();
+       event_trigger_init ();
        transform_init ();
        animation_init ();
        brush_init ();

Modified: trunk/moon/src/runtime.h
===================================================================
--- trunk/moon/src/runtime.h    2007-06-07 07:56:22 UTC (rev 78821)
+++ trunk/moon/src/runtime.h    2007-06-07 08:09:15 UTC (rev 78822)
@@ -201,6 +201,7 @@
                QUADRATICBEZIERSEGMENT,
                TRIGGERACTION,
                BEGINSTORYBOARD,
+               EVENTTRIGGER,
        };
 
        Kind k;
@@ -438,8 +439,35 @@
        }
 };
 
+struct RoutedEvent {
 
+ public:
+       const char *name;
 
+       RoutedEvent () : name (NULL) { }
+       RoutedEvent (const char *name) : name (name) { }
+       
+};
+
+class EventTrigger : public DependencyObject {
+
+ public:
+       EventTrigger ()
+       {
+               SetObjectType (Value::EVENTTRIGGER);
+       }
+
+       static DependencyProperty* ActionsProperty;
+       static DependencyProperty* RoutedEventProperty;
+};
+
+void event_trigger_init ();
+
+class TriggerActionCollection : Collection {
+
+
+};
+
 //
 // Item class
 //

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

Reply via email to