Xceed DataGrid for WPF v7.2 Documentation
DisplayedYear Property


Xceed.Wpf.Controls Assembly > Xceed.Wpf.Controls Namespace > DatePicker Class : DisplayedYear Property
Gets or sets the year currently displayed in the DatePicker's calendar.
Syntax
'Declaration
 
Public Property DisplayedYear As Integer
'Usage
 
Dim instance As DatePicker
Dim value As Integer
 
instance.DisplayedYear = value
 
value = instance.DisplayedYear
public int DisplayedYear {get; set;}

Property Value

A value representing the year currently displayed in the DatePicker's calendar. By default, DateTime.MinValue.Year.
Remarks

Changing this property will cause the CalendarItems collection to update with the values of the new month/year.

If the SyncCalendarWithSelectedDate property is set to true, changes made to the SelectedDate will also be applied to the DisplayedMonth/DisplayedYear properties.

Requirements

Target Platforms: Windows 11, Windows, 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DatePicker Class
DatePicker Members