WinFormsCommandBindingsCollectionSupportCrossThreadStateUpdates Property
Gets or sets whether cross-thread state updates are supported.
It is relevant when the command source is a
Control or a
ToolStripItem, and the command states
(e.g.
Enabled)
may change from a different thread than the one the command binding was created on.
Default value:
.
Namespace: KGySoft.ComponentModelAssembly: KGySoft.WinForms (in KGySoft.WinForms.dll) Version: 5.0.1
public bool SupportCrossThreadStateUpdates { get; set; }
Public Property SupportCrossThreadStateUpdates As Boolean
Get
Set
public:
property bool SupportCrossThreadStateUpdates {
bool get ();
void set (bool value);
}
member SupportCrossThreadStateUpdates : bool with get, set
Property Value
Boolean This property should be set before adding a binding to the collection. Already added bindings will not be affected by this property.