WTF Moment: Object Lifetime Events

I was reading the MSDN docs for Object Lifetime Events (click and see highlighted portion):

object-lifetime-events.png

Blindly believing this because having OnInitialized act as a bubbling event makes sense, I override OnInitialized for two panels, one nested inside the other. This was so that the two could communicate with each other by having the outer panel set some properties in the inner. Noticing some properties weren’t being set in the nested panel, I set break points in the debugger and it turns out OnInitialized is NOT bubbling, but appears as tunneling.

Am I smoking crack, or is there something going on in these Object Lifetime Events that I’m not aware of?


Explore posts in the same categories: WPF

Tags: ,

You can comment below, or link to this permanent URL from your own site.

Comment:

You must be logged in to post a comment.