C# Class Illusion.Parser

Parses text into a fully functional set of TriggerBase instances with ActionMessage.
Afficher le fichier Open project: kasicass/kasicass

Méthodes publiques

Свойство Type Description
CreateParameter Func
CreateTrigger Func
InterpretMessageText Func

Méthodes publiques

Méthode 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

Méthode Description
Split ( string message, char separator ) : string[]
SplitParameters ( string parameters ) : string[]

Method Details

BindParameter() public static méthode

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.
Résultat void

CreateMessage() public static méthode

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.
Résultat System.Windows.Interactivity.TriggerAction

Parse() public static méthode

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

Property Details

CreateParameter public_oe static_oe property

Function used to parse a string identified as a message parameter.
public static Func CreateParameter
Résultat 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
Résultat Func

InterpretMessageText public_oe static_oe property

Function used to parse a string identified as a message.
public static Func InterpretMessageText
Résultat Func