C# Class Illusion.Parser

Parses text into a fully functional set of TriggerBase instances with ActionMessage.
Mostra file Open project: kasicass/kasicass

Public Properties

Property Type Description
CreateParameter Func
CreateTrigger Func
InterpretMessageText Func

Public Methods

Method Description
BindParameter ( FrameworkElement target, Parameter parameter, string elementName, string path, BindingMode bindingMode ) : void

Creates a binding on a Parameter.

CreateMessage ( DependencyObject target, string messageText ) : System.Windows.Interactivity.TriggerAction

Creates an instance of ActionMessage by parsing out the textual dsl.

Parse ( DependencyObject target, string text ) : IEnumerable

Parses the specified message text.

Private Methods

Method Description
Split ( string message, char separator ) : string[]
SplitParameters ( string parameters ) : string[]

Method Details

BindParameter() public static method

Creates a binding on a Parameter.
public static BindParameter ( FrameworkElement target, Parameter parameter, string elementName, string path, BindingMode bindingMode ) : void
target System.Windows.FrameworkElement The target to which the message is applied.
parameter Parameter The parameter object.
elementName string The name of the element to bind to.
path string The path of the element to bind to.
bindingMode BindingMode The binding mode to use.
return void

CreateMessage() public static method

Creates an instance of ActionMessage by parsing out the textual dsl.
public static CreateMessage ( DependencyObject target, string messageText ) : System.Windows.Interactivity.TriggerAction
target System.Windows.DependencyObject The target of the message.
messageText string The textual message dsl.
return System.Windows.Interactivity.TriggerAction

Parse() public static method

Parses the specified message text.
public static Parse ( DependencyObject target, string text ) : IEnumerable
target System.Windows.DependencyObject The target.
text string The message text.
return IEnumerable

Property Details

CreateParameter public_oe static_oe property

Function used to parse a string identified as a message parameter.
public static Func CreateParameter
return Func

CreateTrigger public_oe static_oe property

The function used to generate a trigger.
The parameters passed to the method are the the target of the trigger and string representing the trigger.
public static Func CreateTrigger
return Func

InterpretMessageText public_oe static_oe property

Function used to parse a string identified as a message.
public static Func InterpretMessageText
return Func