in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

Image Magnifier: What is Pan Step doing?

Last post 11-12-2008 7:43 PM by C1_BernardoC. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-12-2008 7:31 PM

    Image Magnifier: What is Pan Step doing?

    I've taken a look at the Studio for Silverlight Control Explorer examples/demo.  What is he PanStep doing for the Image Magnifier?   I didn't see any supporting documentation on it and it wasn't evident that anything was changing when I moved the slider left or right. 

    Also, is there a way to set coordinates of the magnifier when it loads or pass parameters to it to automatically initially set where the magnifier is located?

    Thanks -  

     

  • 11-12-2008 7:43 PM In reply to

    Re: Image Magnifier: What is Pan Step doing?

    The PanStep determines the amount of panning applied when the ImageMagnifier has the focus and the user presses the arrow keys to move the magnifier over the image. To see the effect, change the PanStep, then click the magnifier and press the arrow keys.

    You can position the magnifier using the Magnifier property. For example:

      mag.UpdateLayout();
      mag.Magnifier.Margin =
    new Thickness(200, 200, 0, 0);

    In this example, "mag" is the C1ImageMagnifier control. The calls UpdateLayout to make sure the control has created the magnifier itself. Then it positions the magnifier by setting its Margin property.

    I hope this helps.

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2009 ComponentOne LLC All Rights Reserved.