Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CalendarButton.IsInactive Property

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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
© 2018 Microsoft