Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

WPF Question.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dani - 09 Jul 2007 12:30 GMT
I'm not sure which is the right forum to post this question - so this is as
general as can be. There question is about treeview in WPF:

I'm trying to implement  drag and drop in TreeViews, poking all sorts of
options for their display.
The code I'm based upon is Josh Smith's ListViewDragDropManager, and just
converted it to manage treeviews, with almost all of the same code. The
logics are all exactly the same, and the display is also from another project
I saw recently.

What I came across is just very weird:
when I expand a TreeViewItem, then collapse it, the TreeViewItem thinks it's
still expanded.
all of the DragOver events come from the incorrect treeviewitem, which is
ofcourse very bad.

The best way to understand what I'm saying is to look at this test project,
and do the following:
1. drag the first item around a little, see that you get all the normal
behavior.
2. expand the first item.
3. collapse the first item.
4. try the drag operations again. notice how when you pass over items from
the second row,
the mouse thinks it's over the first row treeviewitem.

solution is here(zip) :
http://www22.brinkster.com/betzera/ohev/dev301/treeview%20dragger.zip

10x,
Dani
Alvin Bruney [MVP] - 11 Jul 2007 03:00 GMT
try the C# newsgroup with this question.

Signature

Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET is coming...
https://www.microsoft.com/MSPress/books/10933.aspx
OWC Black Book www.lulu.com/owc
Professional VSTO 2005 - Wrox/Wiley

> I'm not sure which is the right forum to post this question - so this is
> as
[quoted text clipped - 31 lines]
> 10x,
> Dani

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.