C# Class Caliburn.Micro.Action

A host for action related attached properties.
Show file Open project: Caliburn-Micro/Caliburn.Micro Class Usage Examples

Public Properties

Property Type Description
TargetProperty global::Xamarin.Forms.BindableProperty
TargetWithoutContextProperty global::Xamarin.Forms.BindableProperty

Public Methods

Method Description
GetTarget ( global::Xamarin.Forms.BindableObject d ) : object

Gets the target for instances of ActionMessage .

GetTargetWithoutContext ( global::Xamarin.Forms.BindableObject d ) : object

Gets the target for instances of ActionMessage .

HasTargetSet ( global::Xamarin.Forms.BindableObject element ) : bool

Checks if the ActionMessage -Target was set.

Invoke ( object target, string methodName, global::Xamarin.Forms.BindableObject view = null, global::Xamarin.Forms.VisualElement source = null, object eventArgs = null, object parameters = null ) : void

Uses the action pipeline to invoke the method.

SetTarget ( global::Xamarin.Forms.BindableObject d, object target ) : void

Sets the target of the ActionMessage .

SetTargetWithoutContext ( global::Xamarin.Forms.BindableObject d, object target ) : void

Sets the target of the ActionMessage .

The DataContext will not be set.

Private Methods

Method Description
OnTargetChanged ( global::Xamarin.Forms.BindableObject d, DependencyPropertyChangedEventArgs e ) : void
OnTargetWithoutContextChanged ( global::Xamarin.Forms.BindableObject d, DependencyPropertyChangedEventArgs e ) : void
SetTargetCore ( DependencyPropertyChangedEventArgs e, global::Xamarin.Forms.BindableObject d, bool setContext ) : void

Method Details

GetTarget() public static method

Gets the target for instances of ActionMessage .
public static GetTarget ( global::Xamarin.Forms.BindableObject d ) : object
d global::Xamarin.Forms.BindableObject The element to which the target is attached.
return object

GetTargetWithoutContext() public static method

Gets the target for instances of ActionMessage .
public static GetTargetWithoutContext ( global::Xamarin.Forms.BindableObject d ) : object
d global::Xamarin.Forms.BindableObject The element to which the target is attached.
return object

HasTargetSet() public static method

Checks if the ActionMessage -Target was set.
public static HasTargetSet ( global::Xamarin.Forms.BindableObject element ) : bool
element global::Xamarin.Forms.BindableObject DependencyObject to check
return bool

Invoke() public static method

Uses the action pipeline to invoke the method.
public static Invoke ( object target, string methodName, global::Xamarin.Forms.BindableObject view = null, global::Xamarin.Forms.VisualElement 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 global::Xamarin.Forms.BindableObject The view.
source global::Xamarin.Forms.VisualElement The source of the invocation.
eventArgs object The event args.
parameters object The method parameters.
return void

SetTarget() public static method

Sets the target of the ActionMessage .
public static SetTarget ( global::Xamarin.Forms.BindableObject d, object target ) : void
d global::Xamarin.Forms.BindableObject The element to attach the target to.
target object The target for instances of .
return void

SetTargetWithoutContext() public static method

Sets the target of the ActionMessage .
The DataContext will not be set.
public static SetTargetWithoutContext ( global::Xamarin.Forms.BindableObject d, object target ) : void
d global::Xamarin.Forms.BindableObject The element to attach the target to.
target object The target for instances of .
return void

Property Details

TargetProperty public static property

A property definition representing the target of an ActionMessage . The DataContext of the element will be set to this instance.
public static global::Xamarin.Forms.BindableProperty TargetProperty
return global::Xamarin.Forms.BindableProperty

TargetWithoutContextProperty public static property

A property definition representing the target of an ActionMessage . The DataContext of the element is not set to this instance.
public static global::Xamarin.Forms.BindableProperty TargetWithoutContextProperty
return global::Xamarin.Forms.BindableProperty