Data binding problem
-
Hello, I have a Window and a viewModel class as a data context of the window. When i try to change some variables in the viewModel class that are binded to Window properties. I get the next exception: "Cannot use a DependencyObject that belongs to a different thread than its parent Freezable". I know that in WPF you dont have access to a UI elements properties from other threads but here i dont directly access the UI element properties i access some variables that are binded to them. how can i solve this?
-
Hello, I have a Window and a viewModel class as a data context of the window. When i try to change some variables in the viewModel class that are binded to Window properties. I get the next exception: "Cannot use a DependencyObject that belongs to a different thread than its parent Freezable". I know that in WPF you dont have access to a UI elements properties from other threads but here i dont directly access the UI element properties i access some variables that are binded to them. how can i solve this?
Make sure you are accessing the UI / properties on the right thread.
WP Apps - Color Search | Arctic | XKCD | Sound Meter | Speed Dial