|
using System.Windows.Controls;
using System.Windows.Media;
using System.Windows;
namespace SilverStunts
{
public class ClipCanvas : Canvas
{
private RectangleGeometry clipper;
public ClipCanvas()
{
this.clipper = new RectangleGeometry();
this.Clip = this.clipper;
}
public void UpdateLayout()
{
this.clipper.Rect = new Rect(0, 0, this.Width, this.Height);
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.