Drag and Drop with ListView WPF

Reblogged from Coding Diary:

Click to visit the original post
  • Click to visit the original post

I found myself with the task of creating a screen where users could arrange the order of certain items. Now instead of having a crude mechanism of numbering each item accordingly I decided to opt for a more interactive way to order. I chose to show the user a list of items where they could drag and drop each item based on the required order that they wanted to see.  

Read more… 822 more words

WPF Data Binding (The quick guide)

Reblogged from Coding Diary:

Here is a quick and brief guide to WPF data binding, hope it helps those new to WPF.

Most applications have some sort of internal data which they want to show in the UI for the user to view. So for example let's say we have a sales systems which holds data about its customers. So I would expect a customers class that would hold the details of each individual customer, and this would be mapped to the UI somehow so when the users wants to see information about a particular customer they can.

Read more… 504 more words

TNV Balaji - Nice Article on WPF Data Binding ...

WPF Styles (quick guide)

Reblogged from Coding Diary:

Styles provide a good way of providing a richer feel to your UI. They provide ways to change the look and feel of controls within the UI and establish UI behaviour such as changing the background colour based on some properties or bindings. You can create styles either in code or in xaml. Xaml is the conventional way and in this article I am going to concentrate mostly on how to define and use styles in xaml.

Read more… 889 more words

Nice Article on WPF Styles ...

#694 - An Example of Custom Drag-and-Drop Behavior

Reblogged from 2,000 Things You Should Know About WPF:

Click to visit the original post

You can define your own drag-and-drop behavior in an application, defining the content to be dragged and the controls that the user drags the content from and to.  The basic process for drag-and-drop is:

  • User presses and holds a mouse button (typically left mouse button) on a control that contains the data to be dragged (the source element)
  • User moves mouse pointer over another control, where the data is to be dropped (the 

Read more… 52 more words

WPF Basics


1. WPF Definition:

Windows Presentation Foundation is the successor to Windows Forms for Microsoft Desktop Application development. WPF uses XAML to create visible User Interface (UI) elements like (buttons, listboxes, editboxes, etc). Continue reading