C# 클래스 System.Windows.Markup.CommandBindingExtension

Represents a custom markup extension, which is used to bind commands to events.
상속: System.Windows.Markup.MarkupExtension
파일 보기 프로젝트 열기: lecode-official/mvvm-framework

Private Properties

프로퍼티 타입 설명
InvokeCommandEventHandler void

공개 메소드들

메소드 설명
CommandBindingExtension ( ) : System.Reflection

Initializes a new CommandBindingExtension instance. No command is set.

CommandBindingExtension ( PropertyPath commandPath ) : System.Reflection

Initializes a new CommandBindingExtension instance. The event arguments are not passed to the command.

CommandBindingExtension ( PropertyPath commandPath, bool passEventArgumentsToCommand ) : System.Reflection

Initializes a new CommandBindingExtension instance.

ProvideValue ( IServiceProvider serviceProvider ) : object

Provides the value of the CommandBindingExtension. It generates an event handler that is passed to the event in which theCommandBindingExtension is used.

비공개 메소드들

메소드 설명
InvokeCommandEventHandler ( object sender, EventArgs e ) : void

The event handler, which is provided as a value for the target value of the CommandBindingExtension. It executes the provided command.

메소드 상세

CommandBindingExtension() 공개 메소드

Initializes a new CommandBindingExtension instance. No command is set.
public CommandBindingExtension ( ) : System.Reflection
리턴 System.Reflection

CommandBindingExtension() 공개 메소드

Initializes a new CommandBindingExtension instance. The event arguments are not passed to the command.
public CommandBindingExtension ( PropertyPath commandPath ) : System.Reflection
commandPath PropertyPath The command to which the event is to be bound.
리턴 System.Reflection

CommandBindingExtension() 공개 메소드

Initializes a new CommandBindingExtension instance.
public CommandBindingExtension ( PropertyPath commandPath, bool passEventArgumentsToCommand ) : System.Reflection
commandPath PropertyPath The command to which the event is to be bound.
passEventArgumentsToCommand bool Determines whether the arguments of the event to which the command gets bound should be passed to the command as a parameter.
리턴 System.Reflection

ProvideValue() 공개 메소드

Provides the value of the CommandBindingExtension. It generates an event handler that is passed to the event in which theCommandBindingExtension is used.
If the service provider argument is null an exception is thrown. /// An exception is raised when the target property (the event to which the command is to be bound) could not be retrieved or when the target property is no event. ///
public ProvideValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider A service provider which gives access to the target object and target value of the
리턴 object