C# 클래스 Illusion.Action

A host for action related attached properties.
파일 보기 프로젝트 열기: kasicass/kasicass

공개 프로퍼티들

프로퍼티 타입 설명
TargetProperty System.Windows.DependencyProperty
TargetWithoutContextProperty System.Windows.DependencyProperty

공개 메소드들

메소드 설명
GetTarget ( DependencyObject d ) : object

Gets the target for instances of ActionMessage .

GetTargetWithoutContext ( DependencyObject d ) : object

Gets the target for instances of ActionMessage .

HasTargetSet ( DependencyObject element ) : bool

Checks if the ActionMessage -Target was set.

Invoke ( object target, string methodName, DependencyObject view = null, FrameworkElement source = null, object eventArgs = null, object parameters = null ) : void

Uses the action pipeline to invoke the method.

SetTarget ( DependencyObject d, object target ) : void

Sets the target of the ActionMessage .

SetTargetWithoutContext ( DependencyObject d, object target ) : void

Sets the target of the ActionMessage .

The DataContext will not be set.

비공개 메소드들

메소드 설명
OnTargetChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
OnTargetWithoutContextChanged ( DependencyObject d, System.Windows.DependencyPropertyChangedEventArgs e ) : void
SetTargetCore ( System.Windows.DependencyPropertyChangedEventArgs e, DependencyObject d, bool setContext ) : void

메소드 상세

GetTarget() 공개 정적인 메소드

Gets the target for instances of ActionMessage .
public static GetTarget ( DependencyObject d ) : object
d System.Windows.DependencyObject The element to which the target is attached.
리턴 object

GetTargetWithoutContext() 공개 정적인 메소드

Gets the target for instances of ActionMessage .
public static GetTargetWithoutContext ( DependencyObject d ) : object
d System.Windows.DependencyObject The element to which the target is attached.
리턴 object

HasTargetSet() 공개 정적인 메소드

Checks if the ActionMessage -Target was set.
public static HasTargetSet ( DependencyObject element ) : bool
element System.Windows.DependencyObject DependencyObject to check
리턴 bool

Invoke() 공개 정적인 메소드

Uses the action pipeline to invoke the method.
public static Invoke ( object target, string methodName, DependencyObject view = null, FrameworkElement source = null, object eventArgs = null, object parameters = null ) : void
target object The object instance to invoke the method on.
methodName string The name of the method to invoke.
view System.Windows.DependencyObject The view.
source System.Windows.FrameworkElement The source of the invocation.
eventArgs object The event args.
parameters object The method parameters.
리턴 void

SetTarget() 공개 정적인 메소드

Sets the target of the ActionMessage .
public static SetTarget ( DependencyObject d, object target ) : void
d System.Windows.DependencyObject The element to attach the target to.
target object The target for instances of .
리턴 void

SetTargetWithoutContext() 공개 정적인 메소드

Sets the target of the ActionMessage .
The DataContext will not be set.
public static SetTargetWithoutContext ( DependencyObject d, object target ) : void
d System.Windows.DependencyObject The element to attach the target to.
target object The target for instances of .
리턴 void

프로퍼티 상세

TargetProperty 공개적으로 정적으로 프로퍼티

A property definition representing the target of an ActionMessage . The DataContext of the element will be set to this instance.
public static DependencyProperty,System.Windows TargetProperty
리턴 System.Windows.DependencyProperty

TargetWithoutContextProperty 공개적으로 정적으로 프로퍼티

A property definition representing the target of an ActionMessage . The DataContext of the element is not set to this instance.
public static DependencyProperty,System.Windows TargetWithoutContextProperty
리턴 System.Windows.DependencyProperty