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
- RegexMatchCollection.cs
- VirtualizingStackPanel.cs
- Trace.cs
- WaitHandleCannotBeOpenedException.cs
- MultiDataTrigger.cs
- UserControlBuildProvider.cs
- AlphabeticalEnumConverter.cs
- FirstQueryOperator.cs
- MouseDevice.cs
- FacetChecker.cs
- WebResourceUtil.cs
- XmlHelper.cs
- DataColumnPropertyDescriptor.cs
- BlockUIContainer.cs
- SaveFileDialogDesigner.cs
- DaylightTime.cs
- ListControl.cs
- DataGridViewRowEventArgs.cs
- StylusPointProperties.cs
- Point3DCollectionConverter.cs
- ProgressBarHighlightConverter.cs
- PrimitiveCodeDomSerializer.cs
- ButtonAutomationPeer.cs
- FontNamesConverter.cs
- StrongNameIdentityPermission.cs
- _Rfc2616CacheValidators.cs
- FormViewPageEventArgs.cs
- ProtocolsConfigurationEntry.cs
- TextDecorationCollection.cs
- TabItem.cs
- GeometryGroup.cs
- _TimerThread.cs
- DbExpressionVisitor.cs
- RenderData.cs
- DataSetMappper.cs
- StorageMappingItemCollection.cs
- DLinqColumnProvider.cs
- MailHeaderInfo.cs
- GB18030Encoding.cs
- EdmMember.cs
- Pts.cs
- DataGridViewCellPaintingEventArgs.cs
- X509SubjectKeyIdentifierClause.cs
- HtmlControlAdapter.cs
- CompoundFileStreamReference.cs
- ItemContainerProviderWrapper.cs
- TabPanel.cs
- MouseCaptureWithinProperty.cs
- Graphics.cs
- LostFocusEventManager.cs
- DataPager.cs
- Base64Decoder.cs
- Path.cs
- GridViewCellAutomationPeer.cs
- NavigationWindowAutomationPeer.cs
- LicenseException.cs
- EntityDataSourceViewSchema.cs
- ToolStripGripRenderEventArgs.cs
- TableLayoutStyle.cs
- EncoderReplacementFallback.cs
- HttpFileCollection.cs
- MouseBinding.cs
- DefaultTextStoreTextComposition.cs
- LZCodec.cs
- TileModeValidation.cs
- DBConnection.cs
- UserPersonalizationStateInfo.cs
- LogReservationCollection.cs
- FormViewCommandEventArgs.cs
- SkipQueryOptionExpression.cs
- WhitespaceSignificantCollectionAttribute.cs
- OleDbPermission.cs
- DesignerOptionService.cs
- EventSetter.cs
- GridViewCellAutomationPeer.cs
- ListViewGroup.cs
- DataGridColumnHeadersPresenter.cs
- wgx_sdk_version.cs
- Ipv6Element.cs
- SymmetricKey.cs
- MultiSelector.cs
- EasingQuaternionKeyFrame.cs
- BuilderElements.cs
- mediaeventargs.cs
- ValueProviderWrapper.cs
- TextServicesLoader.cs
- _StreamFramer.cs
- AxImporter.cs
- RectAnimationClockResource.cs
- SerializationTrace.cs
- Image.cs
- ClientFormsIdentity.cs
- CommentAction.cs
- ResourceProviderFactory.cs
- GridToolTip.cs
- ChannelTerminatedException.cs
- MergeExecutor.cs
- DataRecordInfo.cs
- RelatedCurrencyManager.cs
- PropertyBuilder.cs