[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

"Usercontrol" placed inside a popup creating exceptions

Asked by yateesh in WPF and Silverlight

Tags: Popup, Usercontrol, WPF, Silverlight

Hi All,
I have a "NumericEdit" usercontrol. In the "UserControl_Loaded" method of the usercontrol, I have
  "Label lab = (Label)MyButton.Template.FindName("Units", MyButton);"

If I place a this usercontrol, inside a popup(popup is placed in a window), the variable "lab" always evaluates to null.
Otherwise this works fine.

Could anyone tell the reason why is this.?

Thanks in advance,
yateesh

[+][-]04/15/09 05:23 AM, ID: 24147129Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/20/09 12:51 PM, ID: 24188015Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625