This example shows how you can create a composite control (UserControl) and let the user to interact with a child control of your user control.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitattributes
.gitignore
1.gif
2.gif
README.md

README.md

Enable Child Control Designer

This example shows how you can create a composite control (UserControl) and let the user to interact with a child control of your user control.

Read the full article here.

For example, I created a UserControl containing a title panel and a contents panel. Here are the requirement that I want to be able to satisfy with this control:

  • Users should be able to drop controls on the contents panel at design time.
  • Users should not be able to drop controls on title panel.
  • Users should not be able to select title panel or change its properties.
  • Users should be able to select contents panel.
  • Users should be able to change properties of contents panel.
  • Users should not be able to move or delete contents panel.