Control parent must be X
- by Shawn Mclean
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?