Author: jackson
Date: 2007-10-09 22:24:34 -0400 (Tue, 09 Oct 2007)
New Revision: 87237

Modified:
   trunk/moon/src/ChangeLog
   trunk/moon/src/xaml.cpp
Log:

        * xaml.cpp: When we create custom elements we also need to set
        * the
        surface on them and mark them for cleanup.



Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog    2007-10-10 01:20:22 UTC (rev 87236)
+++ trunk/moon/src/ChangeLog    2007-10-10 02:24:34 UTC (rev 87237)
@@ -1,5 +1,10 @@
 2007-10-09  Jackson Harper  <[EMAIL PROTECTED]>
 
+       * xaml.cpp: When we create custom elements we also need to set the
+       surface on them and mark them for cleanup.
+
+2007-10-09  Jackson Harper  <[EMAIL PROTECTED]>
+
        * xaml.cpp: When we are creating objects from a string, set the
        encoding to utf8 so that expat doesn't try to determine the
        encoding from the ?xml declaration (which will be incorrect

Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp     2007-10-10 01:20:22 UTC (rev 87236)
+++ trunk/moon/src/xaml.cpp     2007-10-10 02:24:34 UTC (rev 87237)
@@ -594,6 +594,10 @@
        inst->element_type = XamlElementInstance::ELEMENT;
        inst->item = c->dependency_object;
 
+       if (inst->item->Is (Type::UIELEMENT) && p->loader)
+               ((UIElement*) inst->item)->SetSurface (p->loader->GetSurface 
());
+       p->AddCreatedElement (inst->item);
+
        return inst;
 }
 

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

Reply via email to