473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

WPF Questions

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/o...%20dragger.zip

10x,
Dani
Jul 11 '07 #1
2 1786
the right place to post this is here:

http://forums.microsoft.com/MSDN/Sho...D=119&SiteID=1

Jul 11 '07 #2
microsoft.public.windows.developer.winfx.indigo
is another option.
"Dani" <Da**@discussions.microsoft.comwrote in message
news:1C**********************************@microsof t.com...
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/o...%20dragger.zip

10x,
Dani

Jul 11 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: softwareengineer2006 | last post by:
All Interview Questions And Answers 10000 Interview Questions And Answers(C,C++,JAVA,DOTNET,Oracle,SAP) I have listed over 10000 interview questions asked in interview/placement test papers for...
0
by: connectrajesh | last post by:
INTERVIEWINFO.NET http://www.interviewinfo.net FREE WEB SITE AND SERVICE FOR JOB SEEKERS /FRESH GRADUATES NO ADVERTISEMENT
2
by: freepdfforjobs | last post by:
Full eBook with 4000 C#, JAVA,.NET and SQL Server Interview questions http://www.questpond.com/SampleInterviewQuestionBook.zip Download the JAVA , .NET and SQL Server interview sheet and rate...
4
by: Drew | last post by:
I posted this to the asp.db group, but it doesn't look like there is much activity on there, also I noticed that there are a bunch of posts on here pertaining to database and asp. Sorry for...
8
by: Krypto | last post by:
Hi, I have used Python for a couple of projects last year and I found it extremely useful. I could write two middle size projects in 2-3 months (part time). Right now I am a bit rusty and trying...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
1
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: ramu | last post by:
C# Interview Questions and Answers8 http://allinterviewsbooks.blogspot.com/2008/07/c-interview-questions-and-answers8.html C# Interview Questions and Answers7...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: reema | last post by:
EJB Interview Questions http://interviewdoor.com/technical/EJB-Interview-Questions.htm CSS Interview Questions http://interviewdoor.com/technical/CSS-Interview-Questions.htm C Interview Questions...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.