Must create DependencySource on same Thread as the DependencyObject.” when binding Background
出处:http://stackoverflow.com/questions/26012793/must-create-dependencysource-on-same-thread-as-the-dependencyobject-when-bind
This is solution:
Whatever code is directly accessing your UI, you can only run on the UI thread. Use a dispatcher to run it there, e.g.: Application.Current.Dispatcher.Invoke(() => { // the code that's accessing UI properties });
| 
 Whatever code is directly accessing your UI, you can only run on the UI thread. Use a dispatcher to run it there, e.g.: 
 | 
                    
                
                
            
        
浙公网安备 33010602011771号