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'}"
Now, how to force it to update? It get’s the time when control is loaded and wouldn’t update it…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s a link of a ‘Ticker’ class that uses INotifyPropertyChanged so it’ll auto-update. Here’s the code from the site:
Declare:
Now this will work: