WPF Behavior Library is a set of additional actions for WPF that allow you to add extra behaviors to a control quickly and easily. Currently the only behavior is Drag & Drop but more are planned. Help, comments, and feedback are welcome.

If you find issues with any of the behaviors or have any suggestions please send an email or log them in the issue tracker.

Current behaviors:
  • Drag & Drop in controls that inherit from ItemsControl (e.g. Listbox, ListView, TabControl). Based on an excellent behavior by Ed Foh with additional tweaks and features.

Examples

Simple Drag & Drop Example

<ListBox Margin="5" ItemTemplate="{StaticResource ListBoxDataTemplate}">
    <Interaction:Interaction.Behaviors>
        <dd:DragDropBehavior ItemType="{x:Type local:Person}" DataTemplate="{StaticResource ListBoxDataTemplate}" />
    </Interaction:Interaction.Behaviors>
</ListBox>



Feature Roadmap
  • Drag & Drop Behavior
    • Allow dropping across windows
    • Extend beyond ItemsControls
  • Numeric TextBox Behavior
  • Virtual Keyboard Input Behavior

Last edited Jun 6, 2010 at 7:23 PM by Aesir, version 10