I've wrote a simple class with one function called Sum. The function demands two numbers and returns the sum of the two numbers. On my form I have two textboxes to insert the numbers, and one textbox that shows the result. Nothing really special, isn't it? Well, I use databinding in XAML to call and execute the function Sum. So, I don't need any code behind ( except the code for the function ). This is a simple example, but the same technique can be used to fill a combobox or listbox with an array, collection, hashtable,... You can download the tutorial and the entire source code: