Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SwitchBuilder Class

A Switch control.

Namespace: DevExtreme.AspNet.Mvc.Builders

Assembly: DevExtreme.AspNet.Core.dll

#Declaration

C#
public class SwitchBuilder :
    WidgetBuilder

The following members return SwitchBuilder objects:

Show 66 links

#Remarks

Call the Switch helper method to create a new Switch control. The method creates a SwitchBuilder class instance whose members allow you to specify control options.

@(Html.DevExtreme().Switch() // create a Switch
    // call methods to specify control options
)

#Inheritance

See Also