DragDrop between windows

2 posts, 0 answers
  1. Kennet
    Kennet avatar
    104 posts
    Member since:
    Jun 2009

    Posted 01 Jun 2010 Link to this post

    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(); 


  2. Valentin.Stoychev
    Admin
    Valentin.Stoychev avatar
    2198 posts

    Posted 04 Jun 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top