BindingExpression

A parsed binding expression from a .ui document — the contents of a { … }: a data-context path, an optional mode, and an optional named converter. Examples: {Player.Health}, {Volume, mode=TwoWay}, {Score | thousands}, {Enabled, mode=OneTime | not}.

Public Methods

IsBinding

public static bool IsBinding(string? text)

Whether text looks like a binding expression ({ … }).

Parameters:

  • text (string?): The attribute value to test.

Returns: bool

Parse

public static BindingExpression Parse(string text)

Parses a { … } expression. The braces are required.

Parameters:

  • text (string): The full expression including braces.

Returns: BindingExpression