Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating Textboxes with a thread -MVVM

My code is written according to the MVVM pattern and i want to update Textboxes by running a thread in the background that updates the values the textboxes should hold. The values are transferred by the INotifyPropertyChanged interface through the Model to the View. I can't seem to get the background thread to run and update the textboxes.

In debugging mode it kind of freezes all of my threads and watch when the gui pops up and then nothing happens.

I'm new at WPF and can't seem to find a solution to my problem elsewhere.

Thanks a lot for the help in advance!

0 Kudos
Message 1 of 2
(1,980 Views)

Having a WPF binding read a model property that is written from a background thread should not be a problem in any modern framework version. I have attached a simple project to demonstrate this. It would be helpful if you could provide an example of the code that is giving you trouble.

~ Paul H
0 Kudos
Message 2 of 2
(1,885 Views)