Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / BackEase.cs / 1305600 / BackEase.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation, 2008 // // File: BackEase.cs //----------------------------------------------------------------------------- namespace System.Windows.Media.Animation { ////// This class implements an easing function that backs up before going to the destination. /// public class BackEase : EasingFunctionBase { public BackEase() { } ////// Amplitude Property /// public static readonly DependencyProperty AmplitudeProperty = DependencyProperty.Register( "Amplitude", typeof(double), typeof(BackEase), new PropertyMetadata(1.0)); ////// Specifies how much the function will pull back /// public double Amplitude { get { return (double)GetValue(AmplitudeProperty); } set { SetValueInternal(AmplitudeProperty, value); } } protected override double EaseInCore(double normalizedTime) { double amp = Math.Max(0.0, Amplitude); return Math.Pow(normalizedTime, 3.0) - normalizedTime * amp * Math.Sin(Math.PI * normalizedTime); } protected override Freezable CreateInstanceCore() { return new BackEase(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeAssignStatement.cs
- CodeCatchClause.cs
- HitTestResult.cs
- ClosableStream.cs
- CodeIdentifier.cs
- TraceContextEventArgs.cs
- EpmSourcePathSegment.cs
- StreamSecurityUpgradeInitiator.cs
- RelationshipManager.cs
- GridViewItemAutomationPeer.cs
- EventLogEntry.cs
- ChannelManager.cs
- BaseTemplateParser.cs
- ContextMarshalException.cs
- DataGridColumnReorderingEventArgs.cs
- ControlFilterExpression.cs
- IdnElement.cs
- TextFindEngine.cs
- SmiMetaData.cs
- CssTextWriter.cs
- XmlValueConverter.cs
- DataPointer.cs
- DesignerForm.cs
- ToolStripItemCollection.cs
- Vector3DCollectionValueSerializer.cs
- DbModificationClause.cs
- PolyLineSegmentFigureLogic.cs
- SchemaLookupTable.cs
- BamlRecords.cs
- HttpModuleAction.cs
- ProxyGenerationError.cs
- shaperfactory.cs
- TabControlEvent.cs
- LinkedResource.cs
- AccessText.cs
- JoinGraph.cs
- CurrentChangingEventManager.cs
- DataObjectEventArgs.cs
- HashCodeCombiner.cs
- QilIterator.cs
- PartialList.cs
- XmlCustomFormatter.cs
- Vector3DConverter.cs
- TextSimpleMarkerProperties.cs
- MorphHelper.cs
- ContentTextAutomationPeer.cs
- TraceXPathNavigator.cs
- ProcessInfo.cs
- WebPartEventArgs.cs
- RightsManagementManager.cs
- XPathDocument.cs
- HiddenField.cs
- TableLayoutCellPaintEventArgs.cs
- SafeNativeMethods.cs
- Zone.cs
- PenLineCapValidation.cs
- EmptyControlCollection.cs
- Byte.cs
- UnsafeNativeMethods.cs
- SoapReflectionImporter.cs
- SettingsAttributes.cs
- DbTransaction.cs
- CompositeControl.cs
- UnauthorizedAccessException.cs
- NativeCompoundFileAPIs.cs
- ImageMapEventArgs.cs
- HwndSourceKeyboardInputSite.cs
- PostBackOptions.cs
- Activity.cs
- DynamicResourceExtension.cs
- BulletDecorator.cs
- Attributes.cs
- DetailsViewCommandEventArgs.cs
- SqlConnectionStringBuilder.cs
- XmlSortKey.cs
- DataRow.cs
- FtpRequestCacheValidator.cs
- WebPartEditVerb.cs
- Soap.cs
- BitmapEffectCollection.cs
- FlagsAttribute.cs
- StrokeNodeEnumerator.cs
- ListViewGroupItemCollection.cs
- HMACRIPEMD160.cs
- DataGridDetailsPresenter.cs
- DragCompletedEventArgs.cs
- AsyncDataRequest.cs
- RawStylusInputReport.cs
- SelectionItemProviderWrapper.cs
- RankException.cs
- IssuanceLicense.cs
- IdnElement.cs
- SemaphoreFullException.cs
- InputMethodStateChangeEventArgs.cs
- SafeRightsManagementQueryHandle.cs
- FragmentQueryProcessor.cs
- Scene3D.cs
- DesignerForm.cs
- TableSectionStyle.cs
- TriState.cs