Date picker widget: Define the view of the designer

To define the date picker control designer view, perform the following:

  1. In the context menu of the Designer » Views folder, click Add » New Item...
  2. In the left pane, select Visual C# Items » Code.
  3. Click Class and in the Name input field, enter DatePickerDesignerView.cs
  4. Change the class definition to inherit from ContentViewDesignerView.
  5. Save the file.

GITHUB EXAMPLE: For more information about the content of the file, see the DatePickerDesignerView.cs file of the downloaded sample project.

When you create a designer view for a multi view designer, you must inherit from ContentViewDesignerView.

After you define the designer view, you must create the visuals of the view. 

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?