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
- IndependentAnimationStorage.cs
- messageonlyhwndwrapper.cs
- ProcessManager.cs
- TreeNodeStyleCollection.cs
- DefaultTextStoreTextComposition.cs
- InnerItemCollectionView.cs
- Transform3DGroup.cs
- TemplateBuilder.cs
- DataGridViewButtonColumn.cs
- EntityConnection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- WebZoneDesigner.cs
- ControlBuilderAttribute.cs
- PathTooLongException.cs
- AxisAngleRotation3D.cs
- PtsCache.cs
- Aes.cs
- SocketPermission.cs
- ColorContextHelper.cs
- EmptyControlCollection.cs
- XmlDocument.cs
- HitTestParameters.cs
- EncoderReplacementFallback.cs
- LoginName.cs
- Types.cs
- Pair.cs
- ResourceAssociationSetEnd.cs
- SafeCryptoKeyHandle.cs
- PassportAuthenticationModule.cs
- ScrollBarRenderer.cs
- RichTextBoxDesigner.cs
- DbConnectionClosed.cs
- ExtentKey.cs
- UnsafeNativeMethods.cs
- DelegateHelpers.Generated.cs
- SvcMapFileSerializer.cs
- EasingFunctionBase.cs
- QueryContext.cs
- ProfileManager.cs
- HttpHandlersSection.cs
- MultiView.cs
- WebBaseEventKeyComparer.cs
- Util.cs
- ProviderCollection.cs
- SkewTransform.cs
- BindingMAnagerBase.cs
- ConstraintManager.cs
- ByteFacetDescriptionElement.cs
- LoginAutoFormat.cs
- ActivityTypeCodeDomSerializer.cs
- DbgCompiler.cs
- PreProcessor.cs
- Translator.cs
- XmlSchemas.cs
- PropertyItem.cs
- ConnectionProviderAttribute.cs
- ProcessHostServerConfig.cs
- FlowLayoutSettings.cs
- SqlDataSourceCommandEventArgs.cs
- StatusBarPanelClickEvent.cs
- CounterSetInstance.cs
- Composition.cs
- Psha1DerivedKeyGenerator.cs
- PartBasedPackageProperties.cs
- ButtonBaseAutomationPeer.cs
- ExpandableObjectConverter.cs
- RenderDataDrawingContext.cs
- Polyline.cs
- HandleCollector.cs
- URLAttribute.cs
- NamespaceList.cs
- LinqDataView.cs
- FrugalList.cs
- DefaultCompensation.cs
- KeyGesture.cs
- SmiContextFactory.cs
- XmlDataImplementation.cs
- WindowsMenu.cs
- CircleHotSpot.cs
- DescendantBaseQuery.cs
- XsdSchemaFileEditor.cs
- ApplyHostConfigurationBehavior.cs
- _AutoWebProxyScriptHelper.cs
- DataTableExtensions.cs
- WebPartTracker.cs
- EmbeddedMailObjectCollectionEditor.cs
- ContainerUtilities.cs
- SafeTimerHandle.cs
- RowParagraph.cs
- Span.cs
- sqlinternaltransaction.cs
- StyleSelector.cs
- EntityProviderServices.cs
- SHA256CryptoServiceProvider.cs
- TypeGeneratedEventArgs.cs
- XamlParser.cs
- ProfileBuildProvider.cs
- Subtree.cs
- WindowsGraphics2.cs
- VirtualizingStackPanel.cs