Each template must contain at least one control which has a CommandName property and a Command event which bubbles up.
The three built in controls which support this are
In the ExpandedTemplate, the button should have a CommandName of "Contract", and should visually indicate that the button will switch to the contracted view.
Set the
In the ContractedTemplate, the button should have a CommandName of "Expand", and should visually indicate that the button will switch to the expanded view.
Set the
<%@ Register TagPrefix="mbexp" Namespace="MetaBuilders.WebControls" Assembly="MetaBuilders.WebControls.ExpandingPanel"%>
]]>
]]>