Author: spouliot
Date: 2007-10-11 13:19:56 -0400 (Thu, 11 Oct 2007)
New Revision: 87347
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/xaml.cpp
Log:
xaml.cpp: Let InkPresenter handle childs like a Canvas (from which it inherits)
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-10-11 17:16:32 UTC (rev 87346)
+++ trunk/moon/src/ChangeLog 2007-10-11 17:19:56 UTC (rev 87347)
@@ -1,3 +1,8 @@
+2007-10-11 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * xaml.cpp: Let InkPresenter handle childs like a Canvas (from
+ which it inherits)
+
2007-10-11 Jb Evain <[EMAIL PROTECTED]>
* playlist.cpp: replace C++ casts to plain casts.
Modified: trunk/moon/src/xaml.cpp
===================================================================
--- trunk/moon/src/xaml.cpp 2007-10-11 17:16:32 UTC (rev 87346)
+++ trunk/moon/src/xaml.cpp 2007-10-11 17:19:56 UTC (rev 87347)
@@ -2928,7 +2928,8 @@
rdoe (dem, "StylusPoint", NULL, Type::STYLUSPOINT, (create_item_func)
stylus_point_new);
rdoe (dem, "Stroke", NULL, Type::STROKE, (create_item_func) stroke_new);
rdoe (dem, "DrawingAttributes", NULL, Type::DRAWINGATTRIBUTES,
(create_item_func) drawing_attributes_new);
- rdoe (dem, "InkPresenter", canvas, Type::INKPRESENTER,
(create_item_func) ink_presenter_new);
+ XamlElementInfo *inkpresenter = rdoe (dem, "InkPresenter", canvas,
Type::INKPRESENTER, (create_item_func) ink_presenter_new);
+ inkpresenter->add_child = panel_add_child;
rdoe (dem, "StrokeCollection", col, Type::STROKE_COLLECTION,
(create_item_func) stroke_collection_new);
rdoe (dem, "StylusPointCollection", col, Type::STYLUSPOINT_COLLECTION,
(create_item_func) stylus_point_collection_new);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches