Setting XAxis through binding?

Feb 5, 2010 at 1: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?

Thanks!

Editor
Feb 8, 2010 at 8:14 AM

Hi,

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.

Mikhail.