Search code examples
.netwpfxamltelerikstring-formatting

WPF Xaml StringFormat issue


I'm binding a property to a GridViewDataColumn, and I want to add a string format :

<telerik:GridViewDataColumn DataMemberBinding="{Binding Points, StringFormat='{0} point(s)'}"/>

The problem is that the line is underlined, and I don't know why.

On this link, the author do the same code like me.

What is my error ?

Thank you.


Solution

  • I'm not familiar with Telerik components, but could you try this:

    <telerik:GridViewDataColumn DataMemberBinding="{Binding Points, StringFormat={}{0} point(s)}"/>