Author: miguel
Date: 2007-06-12 20:12:10 -0400 (Tue, 12 Jun 2007)
New Revision: 79354

Modified:
   trunk/olive/class/agclr/System.Windows/DependencyObject.cs
Log:
First pass at the events

Modified: trunk/olive/class/agclr/System.Windows/DependencyObject.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/DependencyObject.cs  2007-06-12 
23:28:09 UTC (rev 79353)
+++ trunk/olive/class/agclr/System.Windows/DependencyObject.cs  2007-06-13 
00:12:10 UTC (rev 79354)
@@ -44,7 +44,7 @@
                {
                        NativeMethods.runtime_init ();
                }
-               
+
                //
                // This is mostly copied from Gtk#'s Object.GetObject
                // we need to take into account in the future:
@@ -70,6 +70,18 @@
                        return dop;
                }
 
+               //
+               // This version only looks up the object, if it has not been 
exposed,
+               // we return null
+               //
+               internal static DependencyObject Lookup (IntPtr ptr)
+               {
+                       if (ptr == IntPtr.Zero)
+                               return null;
+
+                       return (DependencyObject) objects [ptr];
+               }
+               
                static object CreateObject (Kind k, IntPtr raw)
                {
                        if (k <= Kind.DEPENDENCY_OBJECT)

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

Reply via email to