IsInactive Property
Collapse the table of content
Expand the table of content

CalendarButton.IsInactive Property

.NET Framework (current version)
 

Gets a value that indicates whether this button represents a year that is not in the currently displayed decade.

Namespace:   System.Windows.Controls.Primitives
Assembly:  PresentationFramework (in PresentationFramework.dll)

public bool IsInactive { get; internal set; }

Property Value

Type: System.Boolean

true if this button represents a day that is not in the currently displayed month, or a year that is not in the currently displayed decade; otherwise, false.

When the DisplayMode of a calendar is Decade, it displays the year before and after the current decade. For example, a calendar that shows the decade for 2000 through 2009 also displays buttons for the years 1999 and 2010. However, the IsInactive property is set to true for the buttons that represent those years.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft