Search code examples
wpfxamlcropclip

Cropping instead of clipping


When clipping a WPF element using a RectangleGeometry, part of the original element will never be shown. Can I then crop to this part of the visual, so that the remainder is stretched to fill the parent?


Solution

  • You can clip and put it in a Viewbox to stretch as needed.