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
- WebPartDeleteVerb.cs
- Cursor.cs
- ControlBuilder.cs
- GridEntry.cs
- XmlCompatibilityReader.cs
- ScriptManager.cs
- hresults.cs
- RelatedView.cs
- HttpModulesInstallComponent.cs
- RectangleHotSpot.cs
- ApplicationException.cs
- BamlStream.cs
- XamlPoint3DCollectionSerializer.cs
- WebPartConnectionsConnectVerb.cs
- ConstraintStruct.cs
- ApplicationBuildProvider.cs
- TemplateEditingVerb.cs
- RuleElement.cs
- XmlRawWriterWrapper.cs
- TextDecorations.cs
- FaultBookmark.cs
- StateMachineAction.cs
- XDRSchema.cs
- CompilerGeneratedAttribute.cs
- ScriptModule.cs
- InfoCardBaseException.cs
- HandlerElementCollection.cs
- RoleBoolean.cs
- MenuItemBinding.cs
- _CacheStreams.cs
- DataGridViewCellPaintingEventArgs.cs
- basevalidator.cs
- TdsParserSessionPool.cs
- NamespaceDecl.cs
- Border.cs
- VerticalAlignConverter.cs
- MetadataSource.cs
- SqlConnectionString.cs
- StreamInfo.cs
- PartialArray.cs
- StreamUpdate.cs
- GeneralTransform3DGroup.cs
- CompatibleIComparer.cs
- HttpModulesSection.cs
- PrivateFontCollection.cs
- TableRow.cs
- TimeEnumHelper.cs
- FrameAutomationPeer.cs
- MenuItemStyleCollection.cs
- GeneralTransformCollection.cs
- DrawingGroupDrawingContext.cs
- PatternMatchRules.cs
- TripleDESCryptoServiceProvider.cs
- SqlNodeTypeOperators.cs
- GeneratedCodeAttribute.cs
- MergablePropertyAttribute.cs
- DateTimeHelper.cs
- TextCompositionManager.cs
- BitmapImage.cs
- FirstMatchCodeGroup.cs
- ellipse.cs
- ConnectionStringSettingsCollection.cs
- FacetDescriptionElement.cs
- HttpChannelBindingToken.cs
- BStrWrapper.cs
- EdgeProfileValidation.cs
- DbProviderConfigurationHandler.cs
- NamespaceQuery.cs
- StateBag.cs
- Group.cs
- StreamAsIStream.cs
- EventMappingSettings.cs
- DocumentReference.cs
- DataStreamFromComStream.cs
- IDReferencePropertyAttribute.cs
- XmlValidatingReaderImpl.cs
- BaseDataBoundControl.cs
- MultiSelectRootGridEntry.cs
- ISAPIRuntime.cs
- BrowserCapabilitiesCompiler.cs
- RequiredAttributeAttribute.cs
- UIElementParagraph.cs
- JoinElimination.cs
- IgnorePropertiesAttribute.cs
- LinqDataSourceEditData.cs
- HttpEncoderUtility.cs
- BindingExpressionUncommonField.cs
- CompilerInfo.cs
- RemotingClientProxy.cs
- OleStrCAMarshaler.cs
- RichTextBox.cs
- DataGridViewIntLinkedList.cs
- IteratorDescriptor.cs
- XPathChildIterator.cs
- XXXOnTypeBuilderInstantiation.cs
- MergePropertyDescriptor.cs
- SourceExpressionException.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- HuffCodec.cs
- DetailsViewDeleteEventArgs.cs