I’m working on a game using WP7 silverlight. Some controls are moving and at some point they get outside the canvas they where in.
I wonder why they are not hidden?
In windows forms when a control gets outside a panel for example, i.e:
control.left > panel.width
it disappears. Can this be possible in silverlight?
thanks..
You should use the Clip property.
The following will show a Button that will show outside of the Canvas because button width > canvas width:
Now if I add the Clip property, what goes outside of the clip region gets hidden: