static new NSObject DefaultAnimationFor(NSString key) { if (key == ZOOM_LEVEL_KEY) { if (mZoomAnimation == null) { mZoomAnimation = new CABasicAnimation(); mZoomAnimation.Duration = 0.2f; } return(mZoomAnimation); } return(NSView.DefaultAnimationFor(key)); }
static new NSObject DefaultAnimationFor(NSString key) { if (key == "drawnLineWidth") { if (drawnLineWidthBasicAnimation == null) { drawnLineWidthBasicAnimation = new CABasicAnimation(); //drawnLineWidthBasicAnimation.Duration = 2.0f; } return(drawnLineWidthBasicAnimation); } else { return(NSView.DefaultAnimationFor(key)); } }