WPF Reflections:

November, 2007

Nov 5 2007   12:05PM GMT

Acropolis



Posted by: Mark Shurmer
WPF

Acropolis is the WPF answer to CAB and Smart clients, and more

First off, it should be mentioned that it is a code name, and very much alpha as at November 2007.

What does it do?

  1. Well it sits on top of WPF, and enables the building of smart clients (for a definition of a smart client, see http://en.wikipedia.org/wiki/Smart_client)
  2. You can create MDI applications with it
  3. It provides the plumbing for the applications you want to write, without you having to do it yourself
  4. There are numerous extension points, as well as the opportunity to subclass existing functionality
  5. It has a designer in Visual Studio (2008 of course)

Nov 2 2007   4:10PM GMT

Drag and drop by hand



Posted by: Mark Shurmer
WPF

Drag and drop in WPF is very similar to that in Windows Forms - very very very similar :-) 

If you don’t want to use Josh Smith’s great DragDropManager, either because you want to do multi-select or you want to use a data type other than the type used as an item in the listview, here is what you need to do:

  1. The ListView that you want to have items dropped needs to have the property AllowDrop set to true
  2. You need to implement MouseMove event to do the actual drag drop
  3. You need to implement Drop to actually process the result of what to do when the data is dropped

And that is it
:-)