This documentation is archived and is not being maintained.

CommandManager.RequerySuggested Event

Occurs when the CommandManager detects conditions that might change the ability of a command to execute.

Namespace:  System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public static event EventHandler RequerySuggested
You cannot use this event in XAML.

Since this event is static, it will only hold onto the handler as a weak reference. Objects that listen for this event should keep a strong reference to their event handler to avoid it being garbage collected. This can be accomplished by having a private field and assigning the handler as the value before or after attaching to this event.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0
Show: