C# Класс Illusion.Parser

Parses text into a fully functional set of TriggerBase instances with ActionMessage.
Показать файл Открыть проект

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

Свойство Тип Описание
CreateParameter Func
CreateTrigger Func
InterpretMessageText Func

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

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

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

Метод Описание
Split ( string message, char separator ) : string[]
SplitParameters ( string parameters ) : string[]

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

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

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

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

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.
Результат System.Windows.Interactivity.TriggerAction

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

Parses the specified message text.
public static Parse ( DependencyObject target, string text ) : IEnumerable
target System.Windows.DependencyObject The target.
text string The message text.
Результат IEnumerable

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

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

Function used to parse a string identified as a message parameter.
public static Func CreateParameter
Результат Func

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

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

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

Function used to parse a string identified as a message.
public static Func InterpretMessageText
Результат Func