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
- VBIdentifierNameEditor.cs
- WindowsSpinner.cs
- CatalogZone.cs
- BamlVersionHeader.cs
- UnescapedXmlDiagnosticData.cs
- Hashtable.cs
- WebBaseEventKeyComparer.cs
- NonVisualControlAttribute.cs
- FormsAuthentication.cs
- DrawingContextDrawingContextWalker.cs
- PolygonHotSpot.cs
- RequestQueue.cs
- WebPartConnectionsConnectVerb.cs
- Pair.cs
- ToolStripStatusLabel.cs
- TypedRowHandler.cs
- HtmlInputHidden.cs
- Parser.cs
- SqlConnectionHelper.cs
- ConditionalAttribute.cs
- OleDbPermission.cs
- SqlDataAdapter.cs
- BooleanExpr.cs
- RectAnimationClockResource.cs
- FilteredSchemaElementLookUpTable.cs
- MatrixTransform.cs
- BitmapEffectGeneralTransform.cs
- RegistryExceptionHelper.cs
- RoleManagerEventArgs.cs
- AccessDataSourceView.cs
- WindowsSpinner.cs
- SymbolType.cs
- MethodRental.cs
- DragCompletedEventArgs.cs
- IODescriptionAttribute.cs
- TemplateControl.cs
- DashStyle.cs
- SizeFConverter.cs
- odbcmetadatacolumnnames.cs
- XmlValueConverter.cs
- XPathParser.cs
- ADRole.cs
- ListBindableAttribute.cs
- OleDragDropHandler.cs
- ReliableSessionBindingElement.cs
- NetNamedPipeSecurityElement.cs
- XmlReflectionMember.cs
- SchemaTableOptionalColumn.cs
- ConnectionConsumerAttribute.cs
- XhtmlBasicValidatorAdapter.cs
- sqlmetadatafactory.cs
- BooleanAnimationBase.cs
- SignedXmlDebugLog.cs
- WindowsToolbarAsMenu.cs
- ListBase.cs
- XmlReflectionMember.cs
- AddInAttribute.cs
- EpmContentSerializerBase.cs
- ExclusiveCanonicalizationTransform.cs
- DisplayInformation.cs
- MapPathBasedVirtualPathProvider.cs
- XmlChildEnumerator.cs
- FilteredDataSetHelper.cs
- TreeNode.cs
- ToolStripPanelRow.cs
- AssemblyHash.cs
- UpDownEvent.cs
- SiteMap.cs
- SystemDiagnosticsSection.cs
- AnonymousIdentificationSection.cs
- SortQuery.cs
- ObjectDataSourceSelectingEventArgs.cs
- HtmlObjectListAdapter.cs
- KeyboardDevice.cs
- StylusEventArgs.cs
- SafeMILHandle.cs
- CapabilitiesPattern.cs
- XmlCompatibilityReader.cs
- XmlHierarchyData.cs
- DataObjectAttribute.cs
- WebPartManager.cs
- LinqDataSourceContextEventArgs.cs
- MediaTimeline.cs
- ObjectReferenceStack.cs
- DashStyle.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- LayoutTable.cs
- BindingExpressionUncommonField.cs
- ProviderConnectionPoint.cs
- AdornerHitTestResult.cs
- Debug.cs
- DesignerCategoryAttribute.cs
- RealizationDrawingContextWalker.cs
- WindowsListViewItem.cs
- VirtualPathProvider.cs
- SettingsBindableAttribute.cs
- AtomicFile.cs
- Helpers.cs
- SqlCacheDependencyDatabase.cs
- ListQueryResults.cs