avalonia-docs icon indicating copy to clipboard operation
avalonia-docs copied to clipboard

TextTrimming - Trim at start

Open Symbai opened this issue 8 months ago • 9 comments

Is your feature request related to a problem? Please describe.

Sometimes its more useful to trim a text at the beginning instead of end.

Describe the solution you'd like

Be able to trim at the beginning. Either by extending the existing TextTrimming enum or by adding a new property

enum TextTrimLocation
{
    End = 0,
    Start = 1,
    Middle = 2 //not requested but in this case to complete the list
}

Describe alternatives you've considered

Using a custom converter

Additional context

Symbai avatar Dec 13 '23 08:12 Symbai