CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Xaml.TriggerAction Class Reference

Control used to invoke a method on the DataContext based on an event being raised by a UI control. More...

Inheritance diagram for Csla.Xaml.TriggerAction:

Public Member Functions

 TriggerAction ()
 Creates an instance of the object. More...
 

Static Public Attributes

static readonly DependencyProperty TargetControlProperty
 Gets or sets the target UI control. More...
 
static readonly DependencyProperty TriggerEventProperty
 Gets or sets the name of the event that will trigger the action. More...
 
static readonly DependencyProperty MethodNameProperty
 Gets or sets the name of the method to be invoked. More...
 
static readonly DependencyProperty MethodParameterProperty
 Gets or sets the value of a parameter to be passed to the invoked method. More...
 
static readonly DependencyProperty RebindParameterDynamicallyProperty
 Gets or sets a value indicating whether the MethodParameter value should be dynamically rebound before invoking the target method. More...
 

Properties

FrameworkElement TargetControl [getset]
 Gets or sets the target UI control. More...
 
string TriggerEvent [getset]
 Gets or sets the name of the event that will trigger the action. More...
 
string MethodName [getset]
 Gets or sets the name of the method to be invoked. More...
 
object MethodParameter [getset]
 Gets or sets the value of a parameter to be passed to the invoked method. More...
 
bool RebindParameterDynamically [getset]
 Gets or sets a value indicating whether the MethodParameter value should be dynamically rebound before invoking the target method. More...
 

Detailed Description

Control used to invoke a method on the DataContext based on an event being raised by a UI control.

Definition at line 25 of file TriggerAction.cs.

Constructor & Destructor Documentation

◆ TriggerAction()

Csla.Xaml.TriggerAction.TriggerAction ( )

Creates an instance of the object.

Definition at line 30 of file TriggerAction.cs.

Member Data Documentation

◆ MethodNameProperty

readonly DependencyProperty Csla.Xaml.TriggerAction.MethodNameProperty
static
Initial value:
=
DependencyProperty.Register("MethodName", typeof(string),
typeof(TriggerAction), new PropertyMetadata(null))
TriggerAction()
Creates an instance of the object.

Gets or sets the name of the method to be invoked.

Definition at line 199 of file TriggerAction.cs.

◆ MethodParameterProperty

readonly DependencyProperty Csla.Xaml.TriggerAction.MethodParameterProperty
static
Initial value:
=
DependencyProperty.Register("MethodParameter", typeof(object),
typeof(TriggerAction), new PropertyMetadata(null))

Gets or sets the value of a parameter to be passed to the invoked method.

Definition at line 217 of file TriggerAction.cs.

◆ RebindParameterDynamicallyProperty

readonly DependencyProperty Csla.Xaml.TriggerAction.RebindParameterDynamicallyProperty
static
Initial value:
=
DependencyProperty.Register("RebindParameterDynamically", typeof(bool),
typeof(TriggerAction), new PropertyMetadata(null))

Gets or sets a value indicating whether the MethodParameter value should be dynamically rebound before invoking the target method.

Definition at line 236 of file TriggerAction.cs.

◆ TargetControlProperty

readonly DependencyProperty Csla.Xaml.TriggerAction.TargetControlProperty
static
Initial value:
=
DependencyProperty.Register("TargetControl", typeof(FrameworkElement),
typeof(TriggerAction), new PropertyMetadata((o, e) =>
{
var ta = (TriggerAction)o;
ta.HookEvent(
(FrameworkElement)e.OldValue, ta.TriggerEvent, (FrameworkElement)e.NewValue, ta.TriggerEvent);
}))

Gets or sets the target UI control.

Definition at line 155 of file TriggerAction.cs.

◆ TriggerEventProperty

readonly DependencyProperty Csla.Xaml.TriggerAction.TriggerEventProperty
static
Initial value:
=
DependencyProperty.Register("TriggerEvent", typeof(string),
typeof(TriggerAction), new PropertyMetadata("Click", (o, e) =>
{
var ta = (TriggerAction)o;
ta.HookEvent(ta.TargetControl, (string)e.OldValue, ta.TargetControl, (string)e.NewValue);
}))

Gets or sets the name of the event that will trigger the action.

Definition at line 177 of file TriggerAction.cs.

Property Documentation

◆ MethodName

string Csla.Xaml.TriggerAction.MethodName
getset

Gets or sets the name of the method to be invoked.

Definition at line 207 of file TriggerAction.cs.

◆ MethodParameter

object Csla.Xaml.TriggerAction.MethodParameter
getset

Gets or sets the value of a parameter to be passed to the invoked method.

Definition at line 225 of file TriggerAction.cs.

◆ RebindParameterDynamically

bool Csla.Xaml.TriggerAction.RebindParameterDynamically
getset

Gets or sets a value indicating whether the MethodParameter value should be dynamically rebound before invoking the target method.

Definition at line 245 of file TriggerAction.cs.

◆ TargetControl

FrameworkElement Csla.Xaml.TriggerAction.TargetControl
getset

Gets or sets the target UI control.

Definition at line 167 of file TriggerAction.cs.

◆ TriggerEvent

string Csla.Xaml.TriggerAction.TriggerEvent
getset

Gets or sets the name of the event that will trigger the action.

Definition at line 189 of file TriggerAction.cs.