This one has me beat;
I have a WPF window with two (important for this case) controls, both from the WPF toolkit available at CodePlex; A DatePicker and a DataGrid.
The DataContext of this window is set to a CLR object that has all the information it needs. This CLR object has a large list of data, and a method called GetDataForDate( DateTime date ) which decides which date we will see data for.
How can I create a ObjectDataProvider (which I assume will be the correct solution) that the datagrid can bind to, which provides access to the data returned by GetDataForDate() called with the selected date of the DatePicker as the parameter?
In other words, I want the user to use the datepicker to choose a date, and the grid should automatically update whenever the date is changed to reflect the correct data.
What kind of black magic do I have to do to achieve something like this - which I would guess should be a relatively common databinding scenario?
Thanks in advance!