When I press the button, the Grid with elements moves, but if I press it many times - the Grid goes very far, how can I limit its movement?
The width of the Grid 1700 and half goes beyond the form, its margin -
<Grid Margin="0,0,-722,0"> Need to limit to
<Grid Margin="-722,0,0,0"> Tell me how can I do this?