Panning window across a grid which extends outside window boundary in WPF?

Put the Grid within a Canvas. The Grid is culling the contents that are offscreen. Here's an example If you take away the canvas the part of the rectangle that is offscreen will be culled Window x:Class="testOffscreenRenderTransform.

MainWindow" xmlns="schemas.microsoft.com/winfx/2006/xaml/pr... xmlns:x="schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525".

Put the Grid within a Canvas. The Grid is culling the contents that are offscreen. Here's an example - If you take away the canvas the part of the rectangle that is offscreen will be culled.

Thanks! I found this solution by myself earlier but forgot to update my question. Your answer is spot on.

– reckoner Aug 22 at 9:21.

The root element of the window is a Grid which extends outside the boundary of the Window both horizontally and vertically. I would like to be able to animate it such that I can display different parts of the grid in the Window. The difference in my approach from the link above is that I want to be able to pan vertically and horizontally and I do not care if everything is pre-rendered and kept in memory as there won't be many pages.

The problem is that the second row is not showing during and after the animation. So it appears that the Grid is sized to the size of the window on startup and doesn't change after that. How can I pan across the grid to achieve the desired effect?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions