Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Is there a way to know when my framework tree (ancestor) has chang

 
 
Old 07-10-2007   #1 (permalink)
nickdu


 
 

Is there a way to know when my framework tree (ancestor) has chang

I've written a control which when rendering needs to look up the tree to find
an ancestor (parent, grandparent, etc.) that holds information which the
control needs in order to render. The problem I've run into is that even
after EndInit() I still can't traverse up the tree to find this ancestor
since it appears EndInit() is called after XamlReader.Load(). However, this
loaded element has not been added to the tree yet. For example:

..
..
..
element = XamlReader.Load(stream);
this.Content = element;
..
..
..

How can the controls which are contained in the xaml which is loaded be
notified when I add that loaded element to tree?
--
Thanks,
Nick

nicknospamdu@community.nospam
remove "nospam" change community. to msn.com

My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
can't update .NET Framework 3.5 Service Pack 1 and .NET Framework 3.5(KB951847 Windows Updates
Bitlocker halts boot up with error that winload.exe has been chang Vista General
Chang how vista mail sorts.. Vista mail
ANN: Bricksoft IM(MSN) SDK For .NET Framework/.NET Compact Framework v1.2 released Live Messenger
ROUTER SET UP FOR XP WILL IT WORK WITJ VISA WILL IT NEED ANY CHANG Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46