How to format TimeSpan in XAML

后端 未结 9 2497
一生所求
一生所求 2020-11-30 00:43

I am trying to format a textblock which is bound to a TimeSpan property. It works if the property is of type DateTime but it fails if it is a

9条回答
  •  佛祖请我去吃肉
    2020-11-30 01:33

    I'm aware that this question is old now, but I'm surprised that no one suggested this simple StringFormat which will work on a TimeSpan directly:

    
    

提交回复
热议问题