Author: toshok
Date: 2007-06-29 16:56:26 -0400 (Fri, 29 Jun 2007)
New Revision: 81080

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/panel.cpp
   trunk/moon/src/panel.h
Log:
        * panel.h, panel.cpp: okay, i'm stupid.  it's not
        OnChildPropertyChanged either.  it's OnCollectionChanged.  we
        seriously need to clean this stuff up.

2007-06-29  Chris Toshok  <[EMAIL PROTECTED]>



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-06-29 20:50:01 UTC (rev 81079)
+++ trunk/moon/src/ChangeLog    2007-06-29 20:56:26 UTC (rev 81080)
@@ -1,5 +1,11 @@
 2007-06-29  Chris Toshok  <[EMAIL PROTECTED]>
 
+       * panel.h, panel.cpp: okay, i'm stupid.  it's not
+       OnChildPropertyChanged either.  it's OnCollectionChanged.  we
+       seriously need to clean this stuff up.
+
+2007-06-29  Chris Toshok  <[EMAIL PROTECTED]>
+
        * panel.h, panel.cpp: child ZIndex property changes are reflected
        via OnChildPropertyChanged, not OnSubPropertyChanged.
 

Modified: trunk/moon/src/panel.cpp
===================================================================
--- trunk/moon/src/panel.cpp    2007-06-29 20:50:01 UTC (rev 81079)
+++ trunk/moon/src/panel.cpp    2007-06-29 20:56:26 UTC (rev 81080)
@@ -93,16 +93,13 @@
        }
 }
 
-bool
-Panel::OnChildPropertyChanged (DependencyProperty *prop, DependencyObject 
*child)
+void
+Panel::OnCollectionChanged (Collection *col, CollectionChangeType type, 
DependencyObject *obj, DependencyProperty *prop)
 {
        // if a child changes its ZIndex property we need to resort our Children
        if (prop == UIElement::ZIndexProperty) {
                GetChildren()->ResortByZIndex ();
-               return true;
        }
-
-       return false;
 }
 
 

Modified: trunk/moon/src/panel.h
===================================================================
--- trunk/moon/src/panel.h      2007-06-29 20:50:01 UTC (rev 81079)
+++ trunk/moon/src/panel.h      2007-06-29 20:56:26 UTC (rev 81080)
@@ -27,7 +27,7 @@
 
        virtual void OnPropertyChanged (DependencyProperty *prop);
 
-       virtual bool OnChildPropertyChanged (DependencyProperty *prop, 
DependencyObject *child);
+       virtual void OnCollectionChanged (Collection *col, CollectionChangeType 
type, DependencyObject *obj, DependencyProperty *prop);
 
        virtual void OnLoaded ();
 };

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

Reply via email to