SourceAwareTargetedCommandTEventArgs, TTarget, TParam Class

Represents a parameterized command, which is aware of its triggering sources and has one or more bound targets.
See the Remarks section of the ICommand interface for details and examples about commands.

Definition

Namespace: KGySoft.ComponentModel
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0-rc.1
C#
public sealed class SourceAwareTargetedCommand<TEventArgs, TTarget, TParam> : ICommand, 
	IDisposable
where TEventArgs : EventArgs
Inheritance
Object    SourceAwareTargetedCommandTEventArgs, TTarget, TParam
Implements
ICommand, IDisposable

Type Parameters

TEventArgs
The type of the event arguments of the triggering event.
TTarget
The type of the target.
TParam
The type of the command parameter.

Constructors

SourceAwareTargetedCommandTEventArgs, TTarget, TParam(ActionICommandSourceTEventArgs, TTarget, TParam) Initializes a new instance of the SourceAwareTargetedCommandTEventArgs, TTarget, TParam class.
SourceAwareTargetedCommandTEventArgs, TTarget, TParam(ActionICommandSourceTEventArgs, ICommandState, TTarget, TParam) Initializes a new instance of the SourceAwareTargetedCommandTEventArgs, TTarget, TParam class.

Methods

Dispose Releases the delegate passed to the constructor. Should be called if the callback is an instance method, which holds references to other objects.
ToStringReturns a string that represents the current command.
(Overrides ObjectToString)

Extension Methods

Convert Converts an Object specified in the obj parameter to the desired targetType.
See the Examples section of the generic ConvertTTarget(Object, CultureInfo) overload for an example.
(Defined by ObjectExtensions)
ConvertTTarget Converts an Object specified in the obj parameter to the desired TTarget.
(Defined by ObjectExtensions)
CreateBinding 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 Creates a binding for a command using the specified source, eventName and targets.
(Defined by Command)
CreateBinding 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.
See the Examples section of the generic InT(T, T) overload for an example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvert Tries to convert an Object specified in the obj parameter to the desired targetType.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)
TryConvertTTarget Tries to convert an Object specified in the obj parameter to the desired TTarget.
See the Examples section of the ConvertTTarget(Object, CultureInfo) method for a related example.
(Defined by ObjectExtensions)

See Also