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
- CachingHintValidation.cs
- AuthenticationManager.cs
- RectValueSerializer.cs
- ExpressionVisitorHelpers.cs
- EventRoute.cs
- OptimalBreakSession.cs
- WebPartChrome.cs
- TableLayoutRowStyleCollection.cs
- SqlHelper.cs
- AttributeUsageAttribute.cs
- NumberSubstitution.cs
- CounterCreationData.cs
- ClientTarget.cs
- AdRotator.cs
- recordstate.cs
- Win32Exception.cs
- XPathNodeInfoAtom.cs
- AutoResizedEvent.cs
- ToggleButtonAutomationPeer.cs
- PackageRelationshipSelector.cs
- SizeAnimationClockResource.cs
- DotNetATv1WindowsLogEntryDeserializer.cs
- DataListItemCollection.cs
- LocalizedNameDescriptionPair.cs
- MSAANativeProvider.cs
- PublishLicense.cs
- ArraySubsetEnumerator.cs
- ToolStripDropTargetManager.cs
- ChineseLunisolarCalendar.cs
- DisplayMemberTemplateSelector.cs
- isolationinterop.cs
- RadioButtonList.cs
- QueuedDeliveryRequirementsMode.cs
- CompiledQueryCacheEntry.cs
- __ConsoleStream.cs
- Group.cs
- HtmlWindow.cs
- InputLanguageSource.cs
- HtmlInputSubmit.cs
- ExpressionsCollectionConverter.cs
- SystemIcons.cs
- MouseDevice.cs
- GenericUI.cs
- CharacterMetricsDictionary.cs
- ResumeStoryboard.cs
- ExpandSegmentCollection.cs
- DllNotFoundException.cs
- InheritanceContextChangedEventManager.cs
- OleDbConnectionInternal.cs
- AlternationConverter.cs
- DataSourceSelectArguments.cs
- RepeatButton.cs
- VersionedStream.cs
- AssemblySettingAttributes.cs
- LayoutTableCell.cs
- CompilerWrapper.cs
- DbException.cs
- SqlClientWrapperSmiStream.cs
- AutoScrollExpandMessageFilter.cs
- PropertyItemInternal.cs
- TypeViewSchema.cs
- WsatTransactionInfo.cs
- TransformProviderWrapper.cs
- CursorEditor.cs
- ManualResetEvent.cs
- InnerItemCollectionView.cs
- RefExpr.cs
- PictureBox.cs
- SqlVisitor.cs
- Point4DConverter.cs
- Line.cs
- CannotUnloadAppDomainException.cs
- DocumentGridContextMenu.cs
- TraceFilter.cs
- MetaTableHelper.cs
- ToolBar.cs
- BamlLocalizationDictionary.cs
- SafeRightsManagementQueryHandle.cs
- SafeProcessHandle.cs
- CodeDelegateCreateExpression.cs
- BulletedList.cs
- CompiledELinqQueryState.cs
- Animatable.cs
- AbstractSvcMapFileLoader.cs
- DataRelation.cs
- PrintSchema.cs
- SecureUICommand.cs
- XslUrlEditor.cs
- CodeTypeReferenceSerializer.cs
- RefreshPropertiesAttribute.cs
- SqlUtil.cs
- ConsumerConnectionPointCollection.cs
- DesignerActionUI.cs
- DragCompletedEventArgs.cs
- ReadWriteObjectLock.cs
- BackgroundFormatInfo.cs
- DataBindEngine.cs
- RuleSettingsCollection.cs
- SizeChangedEventArgs.cs
- XmlWrappingReader.cs