I have a some number that changing fast enough while runtime. I need to show it on the WPF Window. I've tried few ways, but no success. If I bind interesting number to the property, it's shows only last value, but no in process of changing. If I set text directly - result is the same. But if I change number and set window's Title property, the result is visible.
For i As Integer = 0 To 1000
txt.Text = "count=" & i.ToString() 'txt is the name of TextBlock control
Next
For i As Integer = 0 To 1000
MyProperty = "count=" & i.ToString() 'MyProperty calls INotifyPropertyChanged event
Next
For i As Integer = 0 To 1000
Me.Title = "count=" & i.ToString() 'this is works!!! but why?
Next
I know some more variants: update text by timer and update it by Window.OnRender event. But it's interesting, why case with Title is works and others - not. And what is the best and correct way to show fast changing values on GUI?