StringFormat on Binding

后端 未结 9 573
野的像风
野的像风 2021-01-01 13:17

View:


I want to format the Date to \"dd/MM/yyyy\", in other words, without the time.

I

9条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-01 13:43

    There is an excellent example here:

    Example from MSDN

    if your converter class is in a different namespace (as suggested to be in a separate folder) you can add

    xmlns:conv="using:MyNamespace.Converters"
    

    and use it like this:

    
      
    
    

    the rest should stay the same as in the example from the link.

提交回复
热议问题