In this post we continue to extend the PivotViewer control by taking programmatic control of the Zoom Slider…
We need to use the CustomPivotViewer class code to locate the internal StepLogSliderViewModel control. This slider control has the properties that we are interested in:
Here are some click handlers for buttons to zoom in and out:
You can try out the sample Silverlight application here:
PivotViewer Zoom Slider.
Here is the source code for you to play with, if you find it useful, let us know. We have extended the PivotViewer control in other ways too.
This sample project is based upon the PivotViewerSample code that shipped with the control, by default it is here for the August 2010 release:
C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\PivotViewer\Aug10\Source\PivotViewerSampleXapCode.zip