Setting XAxis through binding?

Feb 5, 2010 at 12:26 AM

I need to set a zoom on my chart, based on some external event from a user.  For example if my X axis range is from 0-1000 and the user selects 200 (in a separate ViewModel)  I would like to set the visible x range to display 150-250- 'zooming' in.

I think this is already possible, but I havent found out how- can anyone help?


Feb 8, 2010 at 7:14 AM


as far as i understand, you can use ViewportRestriction - define a dependency property in it, set a binding to this dependency property from your property and then use the value you've got in Apply method of ViewportRestriction.