UserControl that is also a Grid in WPF
Posted
by drasto
on Stack Overflow
See other posts from Stack Overflow
or by drasto
Published on 2010-05-30T19:06:28Z
Indexed on
2010/05/30
19:12 UTC
Read the original article
Hit count: 192
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
.
© Stack Overflow or respective owner