Date picker widget: Define the view of the designer
To define the date picker control designer view, perform the following:
- In the context menu of the Designer » Views folder, click Add » New Item...
- In the left pane, select Visual C# Items » Code.
- Click Class and in the Name input field, enter DatePickerDesignerView.cs
- Change the class definition to inherit from
ContentViewDesignerView
.
- 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.