ScrollBar.IsEnabledCore Property

 
System_CAPS_noteNote

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

Gets a value that indicates whether the ScrollBar is enabled.

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

protected override bool IsEnabledCore { get; }

Property Value

Type: System.Boolean

true if the ScrollBar is enabled in a ScrollViewer and the size of the content is larger than the display area; otherwise, false. The default is true.

This implementation sets IsEnabledCore to true only if the Maximum value of the ScrollBar is greater than the Minimum value and the ScrollBar is enabled.

.NET Framework
Available since 3.0
Return to top
Show: