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
- LongValidator.cs
- WindowsSlider.cs
- UIElementHelper.cs
- ConstructorBuilder.cs
- EtwProvider.cs
- Point4DConverter.cs
- CleanUpVirtualizedItemEventArgs.cs
- UInt16Storage.cs
- LicenseManager.cs
- TypeSystem.cs
- SimpleLine.cs
- TextWriter.cs
- ZipPackage.cs
- InputScopeManager.cs
- OrElse.cs
- MLangCodePageEncoding.cs
- XpsStructure.cs
- RootNamespaceAttribute.cs
- MsmqTransportSecurity.cs
- BitmapEffectDrawingContent.cs
- SolidColorBrush.cs
- BitmapInitialize.cs
- InfoCardTrace.cs
- ProfileInfo.cs
- ErrorFormatterPage.cs
- TypeElement.cs
- PerfCounterSection.cs
- ImageBrush.cs
- DBSqlParserColumnCollection.cs
- PriorityQueue.cs
- AncillaryOps.cs
- ServicePointManager.cs
- WebCategoryAttribute.cs
- DataSourceControlBuilder.cs
- TextFormatterHost.cs
- DbConnectionFactory.cs
- Timer.cs
- NetworkCredential.cs
- ClientRuntimeConfig.cs
- XmlTypeMapping.cs
- URLAttribute.cs
- SliderAutomationPeer.cs
- ManagedFilter.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DocumentViewerAutomationPeer.cs
- DataGridViewTopLeftHeaderCell.cs
- CrossContextChannel.cs
- Dispatcher.cs
- DataGridViewCheckBoxColumn.cs
- LabelEditEvent.cs
- RangeValueProviderWrapper.cs
- SByteConverter.cs
- TreeNodeSelectionProcessor.cs
- RadioButtonList.cs
- ResourcePool.cs
- HostedHttpContext.cs
- ErrorWebPart.cs
- WCFBuildProvider.cs
- ReferenceAssemblyAttribute.cs
- ErrorCodes.cs
- LogReservationCollection.cs
- ConfigurationElementProperty.cs
- DESCryptoServiceProvider.cs
- VerbConverter.cs
- UndoEngine.cs
- UnsafeNativeMethods.cs
- DataTableTypeConverter.cs
- KeyFrames.cs
- SamlAction.cs
- BinaryFormatter.cs
- SizeAnimationClockResource.cs
- LineSegment.cs
- XamlStyleSerializer.cs
- DrawingAttributes.cs
- SQLDoubleStorage.cs
- DataSourceHelper.cs
- BulletedList.cs
- TextOnlyOutput.cs
- FreezableDefaultValueFactory.cs
- DESCryptoServiceProvider.cs
- RowVisual.cs
- XmlResolver.cs
- RootContext.cs
- OracleConnectionString.cs
- ReadOnlyNameValueCollection.cs
- AvTrace.cs
- WorkflowLayouts.cs
- DesignSurfaceCollection.cs
- CompilerWrapper.cs
- PageCatalogPart.cs
- FormsAuthenticationUser.cs
- ReferentialConstraint.cs
- StrokeCollectionConverter.cs
- BuildManagerHost.cs
- MetadataItem_Static.cs
- EmptyQuery.cs
- EncryptedReference.cs
- SpellCheck.cs
- WhitespaceRuleReader.cs
- RawStylusInputCustomData.cs