C# Класс Caliburn.Micro.Action

A host for action related attached properties.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
TargetProperty global::Xamarin.Forms.BindableProperty
TargetWithoutContextProperty global::Xamarin.Forms.BindableProperty

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

GetTarget() публичный статический Метод

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.
Результат object

GetTargetWithoutContext() публичный статический Метод

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.
Результат object

HasTargetSet() публичный статический Метод

Checks if the ActionMessage -Target was set.
public static HasTargetSet ( global::Xamarin.Forms.BindableObject element ) : bool
element global::Xamarin.Forms.BindableObject DependencyObject to check
Результат bool

Invoke() публичный статический Метод

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.
Результат void

SetTarget() публичный статический Метод

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 .
Результат void

SetTargetWithoutContext() публичный статический Метод

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 .
Результат void

Описание свойств

TargetProperty публичное статическое свойство

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
Результат global::Xamarin.Forms.BindableProperty

TargetWithoutContextProperty публичное статическое свойство

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
Результат global::Xamarin.Forms.BindableProperty