public static PlotModel UnbalancedClippingPop() { var model = new PlotModel(); var annotation = new RenderingCapabilities.DelegateAnnotation(rc => { rc.PopClip(); }); model.Annotations.Add(annotation); return(model); }
public static PlotModel ExceptionClipping() { var model = new PlotModel(); var annotation = new RenderingCapabilities.DelegateAnnotation(rc => { rc.PushClip(new OxyRect(50, 50, 50, 50)); throw new Exception("This Exception should be completely visible and not clipped by the previously pushed clipping rectangle."); }); model.Annotations.Add(annotation); return(model); }