Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / ExponentialEase.cs / 1305600 / ExponentialEase.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation, 2008 // // File: ExponentialEase.cs //----------------------------------------------------------------------------- using MS.Internal; namespace System.Windows.Media.Animation { ////// This class implements an easing function that gives an exponential curve /// public class ExponentialEase : EasingFunctionBase { public ExponentialEase() { } ////// Factor Property /// public static readonly DependencyProperty ExponentProperty = DependencyProperty.Register( "Exponent", typeof(double), typeof(ExponentialEase), new PropertyMetadata(2.0)); ////// Specifies the factor which controls the shape of easing. /// public double Exponent { get { return (double)GetValue(ExponentProperty); } set { SetValueInternal(ExponentProperty, value); } } protected override double EaseInCore(double normalizedTime) { double factor = Exponent; if (DoubleUtil.IsZero(factor)) { return normalizedTime; } else { return (Math.Exp(factor * normalizedTime) - 1.0) / (Math.Exp(factor) - 1.0); } } protected override Freezable CreateInstanceCore() { return new ExponentialEase(); } } } // 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
- StandardCommands.cs
- NewArray.cs
- SegmentInfo.cs
- RecordsAffectedEventArgs.cs
- DataShape.cs
- PointUtil.cs
- StatusBarItemAutomationPeer.cs
- VisualBasicReference.cs
- CodeStatement.cs
- ObjectItemNoOpAssemblyLoader.cs
- FileUtil.cs
- BypassElement.cs
- BidOverLoads.cs
- IndentTextWriter.cs
- Stylus.cs
- InputBinder.cs
- HostProtectionPermission.cs
- FontStretchConverter.cs
- KeyFrames.cs
- CacheAxisQuery.cs
- BitmapFrameEncode.cs
- MetadataCache.cs
- ColumnWidthChangingEvent.cs
- PackageRelationshipCollection.cs
- SigningDialog.cs
- ReflectionUtil.cs
- OnOperation.cs
- SimpleHandlerBuildProvider.cs
- CriticalHandle.cs
- ThemeDictionaryExtension.cs
- EntityCommandDefinition.cs
- webbrowsersite.cs
- SchemaImporterExtensionsSection.cs
- RadioButton.cs
- SmiGettersStream.cs
- ProcessHostFactoryHelper.cs
- Span.cs
- WebPartHelpVerb.cs
- DataPointer.cs
- LinqDataSourceHelper.cs
- SecurityPolicySection.cs
- CellTreeNodeVisitors.cs
- QuaternionValueSerializer.cs
- DesignerHost.cs
- ElementNotAvailableException.cs
- AdRotator.cs
- SecurityTokenTypes.cs
- StringAnimationBase.cs
- ReachFixedDocumentSerializer.cs
- MasterPageParser.cs
- IPEndPointCollection.cs
- ListViewUpdatedEventArgs.cs
- EntityCodeGenerator.cs
- PartitionedDataSource.cs
- DataServiceConfiguration.cs
- ListViewItemMouseHoverEvent.cs
- DataTableNewRowEvent.cs
- RawStylusInputCustomDataList.cs
- CatalogPartCollection.cs
- SmtpSection.cs
- DbRetry.cs
- CannotUnloadAppDomainException.cs
- RoleManagerSection.cs
- Peer.cs
- Asn1Utilities.cs
- WebPartAuthorizationEventArgs.cs
- AnnotationHelper.cs
- SelectionUIService.cs
- HttpCacheVaryByContentEncodings.cs
- BitmapEffect.cs
- MemberPath.cs
- Internal.cs
- SiteMapHierarchicalDataSourceView.cs
- XsltSettings.cs
- ObjectDataSourceSelectingEventArgs.cs
- HostProtectionPermission.cs
- PtsHost.cs
- BaseHashHelper.cs
- RotateTransform.cs
- CorrelationToken.cs
- BasicExpressionVisitor.cs
- ContentPropertyAttribute.cs
- Label.cs
- ResourceManager.cs
- AttributeProviderAttribute.cs
- DictionaryContent.cs
- ZoneIdentityPermission.cs
- SafeReversePInvokeHandle.cs
- GAC.cs
- DocumentScope.cs
- LineInfo.cs
- EventLog.cs
- Rss20ItemFormatter.cs
- ErrorFormatter.cs
- LineServicesRun.cs
- SizeLimitedCache.cs
- SqlSelectStatement.cs
- GlobalizationAssembly.cs
- DefaultValueTypeConverter.cs
- EllipticalNodeOperations.cs