I have a scenario in my project to bind listbox Control which contains some textbox and stackpanel and while i am binding listbox control i need to change color of stackpanel inside it on basis of some condition. actually i have done it. but little problem when binding listbox and finding stackpanel on same event like button click .it does not show any control in listboxitem in visual tree to returning null and as soon as i put both thing on different event binding listbox and on other event finding control it works fine.
but i have to do it on same event. is there any other way. or can u tell me reason and solution for this.
pls respond on my Email (firstname.lastname@example.org)