[Mono-bugs] [Bug 82267][Nor] New - order of Children.Add/DependencyObject.RegisterName is important

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jul 31 19:08:24 EDT 2007

Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by toshok at ximian.com.


--- shadow/82267	2007-07-31 19:08:24.000000000 -0400
+++ shadow/82267.tmp.8106	2007-07-31 19:08:24.000000000 -0400
@@ -0,0 +1,33 @@
+Bug#: 82267
+Product: Moonlight
+Version: 1_0
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: engine
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: toshok at ximian.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: order of Children.Add/DependencyObject.RegisterName is important
+we should be able to set the Name property of a dependencyobject before
+adding it to its parent and have it dtrt.
+right now you have to add the child to the parent before registering the
+name.  also, this only works when you're adding to the Canvas after it's
+been attached to the surface.
+from irc:
+(15:53:13) toshok: when setting the name on the element, it should really
+create a temporary namescope on that element, and register the name there
+(15:53:23) toshok: then when you add the element to the tree, it should
+merge the namescope in
+(15:54:44) toshok: (and create a temporary namescope in the parent if it
+lacks one)

More information about the mono-bugs mailing list