Author: jackson
Date: 2007-10-09 13:22:23 -0400 (Tue, 09 Oct 2007)
New Revision: 87202
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/control.cpp
Log:
* control.cpp: Since controls are UIElements we need to make
* sure
their surface is set when we create them from XAML.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-09 17:09:18 UTC (rev 87201)
+++ trunk/moon/src/ChangeLog 2007-10-09 17:22:23 UTC (rev 87202)
@@ -1,3 +1,8 @@
+2007-10-09 Jackson Harper <[EMAIL PROTECTED]>
+
+ * control.cpp: Since controls are UIElements we need to make sure
+ their surface is set when we create them from XAML.
+
2007-10-09 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* dependencyobject.cpp: resolve_property_path: Add a nullcheck.
Modified: trunk/moon/src/control.cpp
===================================================================
--- trunk/moon/src/control.cpp 2007-10-09 17:09:18 UTC (rev 87201)
+++ trunk/moon/src/control.cpp 2007-10-09 17:22:23 UTC (rev 87202)
@@ -168,6 +168,9 @@
real_object->UpdateTransform ();
UpdateBounds ();
+ if (loader)
+ SetSurface (loader->GetSurface ());
+
return element;
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches