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
- LingerOption.cs
- ExplicitDiscriminatorMap.cs
- MethodExecutor.cs
- BufferedGraphics.cs
- TemplatePagerField.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- NativeConfigurationLoader.cs
- HtmlWindowCollection.cs
- GuidConverter.cs
- CompilationUtil.cs
- Transform.cs
- SingleKeyFrameCollection.cs
- Point4D.cs
- DragCompletedEventArgs.cs
- MultilineStringConverter.cs
- HttpCacheParams.cs
- TemplateField.cs
- DrawingGroup.cs
- OracleConnectionFactory.cs
- HitTestResult.cs
- HttpStreamFormatter.cs
- TriggerAction.cs
- PagerStyle.cs
- HyperLinkField.cs
- XmlAttributeOverrides.cs
- XslException.cs
- ZeroOpNode.cs
- XamlPoint3DCollectionSerializer.cs
- HelpInfo.cs
- SQLChars.cs
- OperationCanceledException.cs
- SqlDataSourceRefreshSchemaForm.cs
- PersonalizationStateInfoCollection.cs
- ServiceNameCollection.cs
- VisualTransition.cs
- SoapFault.cs
- sqlstateclientmanager.cs
- SimplePropertyEntry.cs
- DataTableClearEvent.cs
- StreamUpdate.cs
- FileLoadException.cs
- ExponentialEase.cs
- KeyValuePair.cs
- CachedPathData.cs
- Int32RectConverter.cs
- MissingMemberException.cs
- XmlMemberMapping.cs
- Mapping.cs
- ProcessActivityTreeOptions.cs
- TypeConverters.cs
- ADMembershipProvider.cs
- ScriptingJsonSerializationSection.cs
- HttpProcessUtility.cs
- RightsManagementInformation.cs
- GradientBrush.cs
- EnumMember.cs
- SqlConnectionHelper.cs
- GenericWebPart.cs
- ProtectedConfigurationSection.cs
- ErrorHandler.cs
- Token.cs
- HtmlMobileTextWriter.cs
- NodeLabelEditEvent.cs
- XmlAnyAttributeAttribute.cs
- WindowsRegion.cs
- RelationshipDetailsRow.cs
- ColumnCollection.cs
- UnsafeNativeMethods.cs
- DocumentPage.cs
- DuplicateContext.cs
- RadioButtonList.cs
- VBIdentifierNameEditor.cs
- _NestedSingleAsyncResult.cs
- ComponentCollection.cs
- EDesignUtil.cs
- ConsoleEntryPoint.cs
- ReferenceEqualityComparer.cs
- namescope.cs
- SchemaTableColumn.cs
- SafeNativeMethodsOther.cs
- FileDialog_Vista.cs
- TextTreeTextElementNode.cs
- X509ChainElement.cs
- FigureHelper.cs
- EventSinkHelperWriter.cs
- ChannelServices.cs
- XmlAnyAttributeAttribute.cs
- ObjectStorage.cs
- TextDocumentView.cs
- EntityDataSourceEntitySetNameItem.cs
- ValueUtilsSmi.cs
- KeyboardNavigation.cs
- DesignerVerb.cs
- RemoteDebugger.cs
- PasswordRecovery.cs
- WebPartCollection.cs
- HostedTcpTransportManager.cs
- ScrollChangedEventArgs.cs
- SoapTypeAttribute.cs
- HostedElements.cs