I'm making a UserControl that is a child of a StackPanel. When it's content changes the size of the control should also change. How should the UserControl notify the StackPanel (or any other container control) that it's size has changed?
For example, if you have a Label control and change the Content element then it will be resized. How does it do this?