Binding to DateTime.Now. Update the value

前端 未结 4 1721
星月不相逢
星月不相逢 2020-12-11 01:47

Well, I needed to bind DateTime.Now to a TextBlock, I used that:

 Text=\"{Binding Source={x:Static System:DateTime.Now},StringFormat=\'HH:mm:ss tt\'}\"
         


        
4条回答
提交回复
热议问题