Прочетете на английски Редактиране

Споделяне чрез


CommandManager.RequerySuggested Event

Definition

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

C#
public static event EventHandler RequerySuggested;

Event Type

Remarks

This event holds 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.

Applies to

Продукт Версии
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10