Represents a non-parameterized command, which is aware of its triggering sources and has no bound targets.
See the Remarks section of the ICommand interface for details and examples about commands.
See the Remarks section of the ICommand interface for details and examples about commands.
Inheritance Hierarchy
KGySoft.ComponentModelSourceAwareCommandTEventArgs
Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.5.0-rc.1
Syntax
public sealed class SourceAwareCommand<TEventArgs> : ICommand, IDisposable where TEventArgs : EventArgs
Type Parameters
- TEventArgs
- The type of the event arguments of the triggering event.
The SourceAwareCommandTEventArgs type exposes the following members.
Constructors
Name | Description | |
---|---|---|
![]() | SourceAwareCommandTEventArgs(ActionICommandSourceTEventArgs) |
Initializes a new instance of the SourceAwareTargetedCommandTEventArgs, TTarget class.
|
![]() | SourceAwareCommandTEventArgs(ActionICommandSourceTEventArgs, ICommandState) |
Initializes a new instance of the SourceAwareTargetedCommandTEventArgs, TTarget class.
|
Methods
Name | Description | |
---|---|---|
![]() | Dispose |
Releases the delegate passed to the constructor. Should be called if the callback is an instance method, which holds references to other objects.
|
Extension Methods
Name | Description | |
---|---|---|
![]() | Convert(Type, CultureInfo) | Overloaded.
Converts an Object specified in the obj parameter to the desired targetType.
(Defined by ObjectExtensions.)See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example. |
![]() ![]() | ConvertTTarget(CultureInfo) | Overloaded. (Defined by ObjectExtensions.) |
![]() | CreateBinding(IDictionaryString, Object, Boolean) | Overloaded.
Creates a binding for a command without any sources and targets. At least one source must be added by the ICommandBinding.AddSource method to make the command invokable.
Targets can be added by the ICommandBinding.AddTarget method.
(Defined by Command.) |
![]() | CreateBinding(Object, String, Object) | Overloaded.
Creates a binding for a command using the specified source, eventName and targets.
(Defined by Command.) |
![]() | CreateBinding(Object, String, IDictionaryString, Object, Object) | Overloaded.
Creates a binding for a command using the specified source, eventName and targets as well as the optionally provided initial state of the binding.
(Defined by Command.) |
![]() | In |
Gets whether item is among the elements of set.
(Defined by ObjectExtensions.)See the Examples section of the generic InT(T, T) overload for an example. |
![]() | TryConvert(Type, Object) | Overloaded. (Defined by ObjectExtensions.) |
![]() | TryConvert(Type, CultureInfo, Object) | Overloaded. (Defined by ObjectExtensions.) |
![]() | TryConvertTTarget(TTarget) | Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. |
![]() | TryConvertTTarget(CultureInfo, TTarget) | Overloaded.
Tries to convert an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions.)See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example. |
See Also