Calendar Controls for WinForms UI Tutorial Customize MultiView Mode in C# for .NET Windows Forms template projects MultiView Mode Customizing - WinForms Calendar Controls
The Windows Forms Calendar Controls support the Multiple View presentation and can be easily customized to show more than one month in the calendar area. .NET Forms developers can easily configure the Forms Calendar Control to display a few months in the calendar area, which allows users choose a range of dates to display.
Several simple properties are available for customizing the presentation behavior of multiple view and provide C# developers powerful extended functionalities in designing the user interface of Windows Forms application.
- EnableMultiView, the property used for enabling the multiple view functionality, the value of the property should be set to true
- ViewMultiColumns, the property used for presenting view in multiple columns, which requiring the setting of integer properties and the number of calendar month views that will be displayed
- ViewMultiRows, the property used for presenting view in multiple rows, which requiring the setting of integer properties and the number of calendar month views you that will be displayed.
- ViewCurrentRow, the property used for locating the position of the month view in row that includes the selected date
- ViewCurrentColumn, the property used for locating the position of the month view in column that includes the selected date
The following are C# code used for configuring and placing multiple view presentation. calendar1.EnableMultiView = true; calendar1.ViewMultiColumns = 3; calendar1.ViewMultiRows = 3; calendar1.ViewCurrentColumn = 0; calendar1. ViewCurrentRow = 0;
|