Invokes a method on a target object when a trigger event is raised from the attached UI control.
More...
|
| | InvokeMethod (UIElement ctrl) |
| | Invokes the target method if all required attached property values have been set.
|
|
| static void | SetTarget (UIElement ctrl, object? value) |
| | Sets the object containing the method to be invoked.
|
| static ? object | GetTarget (UIElement ctrl) |
| | Gets the object containing the method to be invoked.
|
| static void | SetMethodName (UIElement ctrl, string value) |
| | Sets the name of method to be invoked.
|
| static string | GetMethodName (UIElement ctrl) |
| | Gets the name of method to be invoked.
|
| static void | SetTriggerEvent (UIElement ctrl, string? value) |
| | Sets the name of event raised by UI control that triggers invoking the target method.
|
| static ? string | GetTriggerEvent (UIElement ctrl) |
| | Gets the name of event raised by UI control that triggers invoking the target method.
|
| static void | SetMethodParameter (UIElement ctrl, object? value) |
| | Sets the parameter value to be passed to invoked method.
|
| static ? object | GetMethodParameter (UIElement ctrl) |
| | Gets the parameter value to be passed to invoked method.
|
|
| static readonly DependencyProperty | TargetProperty |
| | Object containing the method to be invoked.
|
| static readonly DependencyProperty | MethodNameProperty |
| | Name of method to be invoked.
|
| static readonly DependencyProperty | TriggerEventProperty |
| | Name of event raised by UI control that triggers invoking the target method.
|
| static readonly DependencyProperty | MethodParameterProperty |
| | Parameter value to be passed to invoked method.
|
Invokes a method on a target object when a trigger event is raised from the attached UI control.
◆ InvokeMethod()
| Csla.Xaml.InvokeMethod.InvokeMethod |
( |
UIElement | ctrl | ) |
|
|
inline |
Invokes the target method if all required attached property values have been set.
- Parameters
-
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ GetMethodName()
| string Csla.Xaml.InvokeMethod.GetMethodName |
( |
UIElement | ctrl | ) |
|
|
inlinestatic |
Gets the name of method to be invoked.
- Parameters
-
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ GetMethodParameter()
| ? object Csla.Xaml.InvokeMethod.GetMethodParameter |
( |
UIElement | ctrl | ) |
|
|
inlinestatic |
Gets the parameter value to be passed to invoked method.
- Parameters
-
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ GetTarget()
| ? object Csla.Xaml.InvokeMethod.GetTarget |
( |
UIElement | ctrl | ) |
|
|
inlinestatic |
Gets the object containing the method to be invoked.
- Parameters
-
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ GetTriggerEvent()
| ? string Csla.Xaml.InvokeMethod.GetTriggerEvent |
( |
UIElement | ctrl | ) |
|
|
inlinestatic |
Gets the name of event raised by UI control that triggers invoking the target method.
- Parameters
-
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ SetMethodName()
| void Csla.Xaml.InvokeMethod.SetMethodName |
( |
UIElement | ctrl, |
|
|
string | value ) |
|
inlinestatic |
Sets the name of method to be invoked.
- Parameters
-
| ctrl | Attached control |
| value | New value |
- Exceptions
-
| ArgumentNullException | ctrl is null. |
| ArgumentException | value is null, string.Empty or only consists of white spaces. |
◆ SetMethodParameter()
| void Csla.Xaml.InvokeMethod.SetMethodParameter |
( |
UIElement | ctrl, |
|
|
object? | value ) |
|
inlinestatic |
Sets the parameter value to be passed to invoked method.
- Parameters
-
| ctrl | Attached control |
| value | New value |
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ SetTarget()
| void Csla.Xaml.InvokeMethod.SetTarget |
( |
UIElement | ctrl, |
|
|
object? | value ) |
|
inlinestatic |
Sets the object containing the method to be invoked.
- Parameters
-
| ctrl | Attached control |
| value | New value |
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ SetTriggerEvent()
| void Csla.Xaml.InvokeMethod.SetTriggerEvent |
( |
UIElement | ctrl, |
|
|
string? | value ) |
|
inlinestatic |
Sets the name of event raised by UI control that triggers invoking the target method.
- Parameters
-
| ctrl | Attached control |
| value | New value |
- Exceptions
-
| ArgumentNullException | ctrl is null. |
◆ MethodNameProperty
| readonly DependencyProperty Csla.Xaml.InvokeMethod.MethodNameProperty |
|
static |
Initial value: =
DependencyProperty.RegisterAttached("MethodName",
typeof(string),
new PropertyMetadata(null))
InvokeMethod(UIElement ctrl)
Invokes the target method if all required attached property values have been set.
Definition InvokeMethod.cs:195
Name of method to be invoked.
◆ MethodParameterProperty
| readonly DependencyProperty Csla.Xaml.InvokeMethod.MethodParameterProperty |
|
static |
Initial value: =
DependencyProperty.RegisterAttached("MethodParameter",
typeof(object),
new PropertyMetadata(null))
Parameter value to be passed to invoked method.
◆ TargetProperty
| readonly DependencyProperty Csla.Xaml.InvokeMethod.TargetProperty |
|
static |
Initial value: =
DependencyProperty.RegisterAttached("Target",
typeof(object),
new PropertyMetadata(null))
Object containing the method to be invoked.
◆ TriggerEventProperty
| readonly DependencyProperty Csla.Xaml.InvokeMethod.TriggerEventProperty |
|
static |
Initial value: =
DependencyProperty.RegisterAttached("TriggerEvent",
typeof(string),
new PropertyMetadata((o, _) =>
{
if (o is UIElement ctrl)
}))
Name of event raised by UI control that triggers invoking the target method.
The documentation for this class was generated from the following file: