UserControl that is also a Grid in WPF
- by drasto
I would like to create a UserControl that will have some behavior(animated collapsing...) and some Controls in it (Rectangle, Ellipse, mostly for design purposes).
However I need it to be a valid Panel like Grid so I can put more controls in it when designing main window. Controls that will be add to the new USerControl in main window design time does not need to interact with components that are added to it when creating a UserControl.
How should I do this ? Do I have to extends Control? I'd prefer to extend just UserControl.