Adventures with PivotViewer Part 7: Slider control

 

In this post we continue to extend the PivotViewer control by taking programmatic control of the Zoom Slider…

PivotViewer Zoom Slider

Programmatic control of Zoom

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:

PivotViewer Zoom Slider Code 1

PivotViewer Zoom Slider Code 1

Here are some click handlers for buttons to zoom in and out:

PivotViewer Zoom Slider Code 2

PivotViewer Zoom Slider Code 2

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.

Adventures with PivotViewer Parts 6 – 8 source code ZIP.

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

8 responses to “Adventures with PivotViewer Part 7: Slider control

  1. Pingback: Tweets that mention Adventures with PivotViewer Part 7: Slider control | Xpert360 Ltd Development Blog -- Topsy.com

  2. These are great articles on PivotViewer, you appear to be the only one in the world who has figured out how to do this great customization of the control. WOuld it possible for you to enhance your sample (from post #6) to include a custom InfoPanel? I’d followed along for the most part but just can’t get it to display my own usercontrol.

  3. Thanks for another great post – I have a quick question for you:
    You were able to get to the internal ControlBar control, I am trying to do something similar: I need access to the internal CustomAccordian inside the FilterPaneView. In reflector it is defined as:

    internal CustomAccordian PART_FacetPane
    Any hints as to how I might be able to get access to this control?

    • CollectionViewerView cvv = ((CollectionViewerView)((Grid)this.GetTemplateChild(“PART_Container”)).Children[0]);
      Grid container = cvv.Content as Grid;
      FilterPaneView FPV = (FilterPaneView)this.CollectionView.FindName(“PART_FilterPane”);
      FacetPane = (CustomAccordion)FPV.FindName(“PART_FacetPane”);

      That works after the collection is loaded.

  4. Pingback: Adventures with PivotViewer Part 8: Filter pane tooltips | Xpert360 Ltd Development Blog

  5. Pingback: Adventures with PivotViewer – Part 1 | Xpert360 Ltd Development Blog

  6. Pingback: Adventures with PivotViewer Part 9: Multi-Layered Trading Cards | Xpert360 Ltd Development Blog

  7. Pingback: Xpert360 PivotViewer Blog Article Index | Xpert360 Ltd Development Blog

Leave a comment