Search code examples
silverlightevent-handlingdatapagerpage-index-changed

DataPager EventArgs


I'm using a DataPager control in my silverlight application. I have different pagers for different DataGrids and want to use the same event handler for the PageIndexChanged event for all of them. The delegate must take an EventArgs object as an argument. Can I use this object to "get back" to the control from which the event was fired?


Solution

  • I swear I tried this before upgrading to f# 4 and silverlight 4 and it didn't work but now it does...

    http://connect.microsoft.com/VisualStudio/feedback/details/524645/f-add-event-handler-to-form-anonymous-function-is-required