Click or drag to resize

StringFormat

A StringFormat accepts either individual argument (up to 5 arguments) or collection argument and returns the formatted string based on the specified format.

  • Individual argument

    Example
                          <
                          Field Value="{StringFormat '{0} and {1}', Arg0=1, Arg1={Binding Parameters.Parameter.Value2, ElementId=Container1}}" />
  • Collection argument

    Example
                          <
                          Field Value="{StringFormat 'Instruction: {0}', Args={MultiBinding Instructions, Source={Binding Tasks}}}" />
Parameters
  • Path (default): string

    The string format enclosed in single apostrophe.

  • Arg0: object

    The first individual argument to be used in formatted string.

  • Arg1: object

    The second individual argument to be used in formatted string.

  • Arg2: object

    The third individual argument to be used in formatted string.

  • Arg3: object

    The fourth individual argument to be used in formatted string.

  • Arg4: object

    The fifth individual argument to be used in formatted string.

  • Args: List<object>

    The collection argument to be used in formatted string. Must be a collection of items.