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
- DoubleConverter.cs
- HandlerFactoryWrapper.cs
- XMLUtil.cs
- ProgressPage.cs
- XsltFunctions.cs
- DataGridRowsPresenter.cs
- MetadataArtifactLoaderFile.cs
- BindingNavigator.cs
- DrawingGroup.cs
- SessionPageStatePersister.cs
- SendKeys.cs
- XmlDocumentSurrogate.cs
- InstallerTypeAttribute.cs
- ProviderBase.cs
- EdmToObjectNamespaceMap.cs
- SqlInternalConnection.cs
- WebHttpElement.cs
- DataExpression.cs
- HtmlInputButton.cs
- PermissionAttributes.cs
- ObjectToIdCache.cs
- ConfigurationStrings.cs
- unsafeIndexingFilterStream.cs
- ComponentDesigner.cs
- Screen.cs
- SystemParameters.cs
- PeerDuplexChannelListener.cs
- Duration.cs
- StateMachineWorkflowInstance.cs
- LeftCellWrapper.cs
- TraceHandler.cs
- LockRecursionException.cs
- FlowDocument.cs
- DataGridView.cs
- CompilationUtil.cs
- Figure.cs
- IisTraceWebEventProvider.cs
- FormViewInsertEventArgs.cs
- RadioButton.cs
- XsltQilFactory.cs
- ContextMarshalException.cs
- DataGridParentRows.cs
- Compiler.cs
- FileInfo.cs
- TokenBasedSetEnumerator.cs
- TickBar.cs
- FullTextLine.cs
- FamilyCollection.cs
- TaskFileService.cs
- ExtendedPropertyDescriptor.cs
- MembershipPasswordException.cs
- isolationinterop.cs
- EntityClassGenerator.cs
- SafeRsaProviderHandle.cs
- WhitespaceRuleLookup.cs
- WebPartCancelEventArgs.cs
- GZipDecoder.cs
- SerializationHelper.cs
- SchemaName.cs
- WebServiceResponse.cs
- PathFigure.cs
- Scripts.cs
- WeakReferenceEnumerator.cs
- ReferencedAssembly.cs
- NameValueFileSectionHandler.cs
- MILUtilities.cs
- RequestTimeoutManager.cs
- Ref.cs
- Tag.cs
- XmlSchemaSimpleTypeUnion.cs
- EventDescriptor.cs
- ListSourceHelper.cs
- TableRow.cs
- WebBrowserProgressChangedEventHandler.cs
- ImportContext.cs
- sitestring.cs
- XsltConvert.cs
- PersonalizationState.cs
- ReliableChannelListener.cs
- WorkflowInstanceExtensionProvider.cs
- ServiceXNameTypeConverter.cs
- BindingValueChangedEventArgs.cs
- XPathCompileException.cs
- EventListener.cs
- SQLBoolean.cs
- ByteKeyFrameCollection.cs
- ProcessThreadCollection.cs
- PenCursorManager.cs
- WizardForm.cs
- MultipleCopiesCollection.cs
- TransactionInterop.cs
- NativeMethods.cs
- RtfControls.cs
- SortableBindingList.cs
- AttachmentCollection.cs
- SQLSingle.cs
- PaintEvent.cs
- PropertyStore.cs
- PowerModeChangedEventArgs.cs
- XmlSchemaDatatype.cs