This project is read-only.

[Wpf] any sample on how to constraint the pan and zoom?

Aug 23, 2012 at 8:53 AM

Hi i am trying to limit the user from panning and zoom too far. How can i do that? thanks!

Aug 27, 2012 at 10:42 AM

see this discussion:

http://dynamicdatadisplay.codeplex.com/discussions/240589/

try something like this for to limit zoom and pan:

 

<d3:ChartPlotter.Restrictions >

 <d3:MinimalSizeRestriction MinSize ="5" />

 

<d3:MaximalSizeRestriction MaxSize ="200" />

 

 

 

 

<d3:DomainRestriction Domain="-50,-50,50,50" />

 

</d3:ChartPlotter.Restrictions  

>

 

Aug 27, 2012 at 10:42 AM

see this discussion:

http://dynamicdatadisplay.codeplex.com/discussions/240589/

try something like this for to limit zoom and pan:

 

<d3:ChartPlotter.Restrictions >

 <d3:MinimalSizeRestriction MinSize ="5" />

 

<d3:MaximalSizeRestriction MaxSize ="200" />

 

 

 

 

<d3:DomainRestriction Domain="-50,-50,50,50" />

 

</d3:ChartPlotter.Restrictions  

>