Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
690
Format Field
posted

Hi, to format a DateTime, I use a converter like that :

<igDP:Field Name="Debut" Label="début" Converter="{StaticResource ResourceKey=DateValueConverter01}">
                                <igDP:Field.Settings>
                                    <igDP:FieldSettings EditAsType="{x:Type System:String}"/>
                                </igDP:Field.Settings>
                            </igDP:Field>

Now, I want to format a field with kW, A or kW/h.

Could we do that directly in XAML without using a converter ?

I don't see a FormatString Property for the igFields.

<igDP:Field Name="Calibre" Label="Calibre" Width="60" ??? ContentStringFormat="{}{0} kW" ??? />

Parents
  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and it seems like that the best approach is to use a Converter in order to format the Header Text, like the one you have shared. If I think of a possible solution which uses only XAML I will let you know.

Reply Children