I have a project with a ComboBox which lists each day of the week. The user should be able to select a day of the week from the combobox drop down to make 'stuff happen'.
In the code behind I have a method which accepts a string overload for the day of week
eg.
I know how do do this using events .. "the winforms way", but I would like to do it properly , "the wpf way" using databinding.
My question then (I think!), is how can I create a data binding which will call a method in the model after making a change in the view?
Is it even possible to do this directly or does it have to be approached differently?
In the code behind I have a method which accepts a string overload for the day of week
eg.
C#:
update("Monday");
I know how do do this using events .. "the winforms way", but I would like to do it properly , "the wpf way" using databinding.
My question then (I think!), is how can I create a data binding which will call a method in the model after making a change in the view?
Is it even possible to do this directly or does it have to be approached differently?