Control parent must be X

Posted by Shawn Mclean on Stack Overflow See other posts from Stack Overflow or by Shawn Mclean
Published on 2010-04-05T21:48:17Z Indexed on 2010/04/05 21:53 UTC
Read the original article Hit count: 395

Filed under:
|

In silverlight, how do I create a usercontrol whose parent must be of a specific control?

Eg. I create control Foo, Foo can only be a child of control FooParent. If in blend, they drag it to inside anything except for a FooParent control, it throws error. Foo should then be able to access properties and public methods of FooParent.

Is there an official way to accomplish this?

© Stack Overflow or respective owner

Related posts about Silverlight

Related posts about .NET