To empower the settings of the controls have a delegate type - ICSSoft.STORMNET.Web.Tools.InitControlSettingsDelegate:

public delegate void InitControlSettingsDelegate<TControl>(TControl instance) where TControl : Control;

At the web control that support this way of configuration is static, the delegates of this type, to which you can assign methods to customize. Usually there is a delegate called at the end of the designer web control. In the method, you can initialize properties, etc. (as a parameter it is passed the current instance of the object).

To assign a static delegates in global.asax.cs.

An example of setting the DatePicker control:

DatePicker.InitSettings = delegate(DatePicker instance)
    {
        instance.DisplayMode = DataPickerDisplayMode.OnFieldFocused;
    };

or using a lambda expression:

DatePicker.InitSettings = instance =>
                {
                    instance.DisplayMode = DataPickerDisplayMode.OnFieldFocused;
                };
Переведено сервисом «Яндекс.Переводчик» http://translate.yandex.ru