locked
How to move elements only inside canvas or gridcell RRS feed

  • Question

  • Hi,

    I would like to create a simple GIS app which has some header and tools icons on the top, list of layers with some switches etc on the left and the main part will be a "frame" with maps. I decided to use a grid layout with 2 rows and 2 columns. In the col/row 1,1 I put canvas and here I suppose to put (programatically) another canvases as layers. Now I need to be able to move the maps (to pan), but only inside this "map frame". I supposed to load the data for larger area then displayed into a "memory buffer" and "crop" them by the frame. Something similar as you can imagine with IFRAME and large picture in the page displayed there - you see only part of the data and what you see is croped by the IFRAME border.

    So my question is - how to move content only in some specific container (for ex. canvas).

    Thanks for ideas

     

    Filuna

    Tuesday, March 25, 2008 9:59 AM

Answers

  • Hello, any containers other than Canvas will do this automatically for you. They will clip anything out of their boundaries. So I think the simplest solution is to wrap your Canvas inside another container, such as a Border.

    Thursday, March 27, 2008 2:41 AM

All replies

  • Hello, any containers other than Canvas will do this automatically for you. They will clip anything out of their boundaries. So I think the simplest solution is to wrap your Canvas inside another container, such as a Border.

    Thursday, March 27, 2008 2:41 AM
  • Hello, thanks ! I have already found that the scroll viewer is the solution for my problem. 

    Thursday, March 27, 2008 4:12 AM