Sunday, April 17, 2011

WPF - Is there any way to programmatically evaluate a binding?

Does anyone know how to get the current value associated with a Binding? I ran into a problem recently where I wanted to get the value associated with a particular cell in the WPFToolKit DataGrid - so I created a function that gets the Path string, splits on '.' and tries uses PropertyDescriptor in a loop, trying to get the bound value. Surely there's a better way :). If anyone can point me in the right direction, I'll love you forever.

Thanks,

Charles

From stackoverflow

0 comments:

Post a Comment

Note: Only a member of this blog may post a comment.