This is a migrated thread and some comments may be shown as answers.

DragDrop between windows

1 Answer 26 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Kennet
Top achievements
Rank 2
Kennet asked on 01 Jun 2010, 03:46 PM
So I have two Windows (same app) and one RadGrid in each, I simply want to dragdrop from one the other.  But the problem is that I have my windows on separate threads for better UI performance. And therefore get error: "The calling thread cannot access this object because a different thread owns it."

How can I solv this?

I open My windows like this:
private void ShowMyWindow1() 
 
Thread _Thread = new Thread(() => 
            { 
                MyWindow1 _MyWindow1 = new MyWindow1(); 
         
                _MyWindow1.Show(); 
                _MyWindow1.Closed += (sender, e) => 
                _MyWindow1.Dispatcher.InvokeShutdown(); 
 
                System.Windows.Threading.Dispatcher.Run(); 
            }); 
 
            _Thread.Name = "My Window"
            _Thread.SetApartmentState(ApartmentState.STA); 
            _Thread.Start(); 


1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 04 Jun 2010, 07:16 AM
Hi Kennet,

This is still not supported. We will try to implement this for the next official release.

Best wishes,
Valentin.Stoychev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
DragAndDrop
Asked by
Kennet
Top achievements
Rank 2
Answers by
Valentin.Stoychev
Telerik team
Share this question
or