Compartilhar via


Delegate Controls

Applies to: SharePoint Foundation 2010

Delegate controls provide a means to specify candidate controls for a particular functionality and to choose a functionality provider for those controls.

Elements

  Control

    Property

Example

The following example specifies a control and tool tips to implement for the input box of the search area in SharePoint pages.

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="https://schemas.microsoft.com/sharepoint/">
  <Control 
    Id="SmallSearchInputBox" 
    Sequence="100"
    ControlSrc="~/_controltemplates/searcharea.ascx">
    <Property Name="SearchTextToolTip">Search this site</Property>
    <Property Name="SearchImageToolTip">Go</Property>
  </Control>
</Elements>

See Also

Tasks

How to: Customize a Delegate Control

Reference

DelegateControl

Concepts

Delegate Control (Control Templatization)