Is it possible to change the parent of a silverlight control? When I tried adding it to the children collection I got an exception.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You cannot assign a control to two different parents, which is probably the error you’re seeing. You need to remove the control from it’s existing parent before you try and add it to the new parent.
I don’t have a compiler on me, but I’d assume the syntax would be something like this: