Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / PowerEase.cs / 1305600 / PowerEase.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation, 2008 // // File: PowerEase.cs //----------------------------------------------------------------------------- namespace System.Windows.Media.Animation { ////// This class implements an easing function that gives a polynomial curve of arbitrary degree. /// If the curve you desire is cubic, quadratic, quartic, or quintic it is better to use the /// specialized easing functions. /// public class PowerEase : EasingFunctionBase { public PowerEase() { } ////// Power Property /// public static readonly DependencyProperty PowerProperty = DependencyProperty.Register( "Power", typeof(double), typeof(PowerEase), new PropertyMetadata(2.0)); ////// Specifies the power for the polynomial equation. /// public double Power { get { return (double)GetValue(PowerProperty); } set { SetValueInternal(PowerProperty, value); } } protected override double EaseInCore(double normalizedTime) { double power = Math.Max(0.0, Power); return Math.Pow(normalizedTime, power); } protected override Freezable CreateInstanceCore() { return new PowerEase(); } } } // 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
- GenericQueueSurrogate.cs
- XmlSchemas.cs
- ResourceCategoryAttribute.cs
- AutomationElementCollection.cs
- DataError.cs
- DEREncoding.cs
- SoapExtensionStream.cs
- AncillaryOps.cs
- PackageDigitalSignature.cs
- ItemAutomationPeer.cs
- ShapingEngine.cs
- PersonalizationProvider.cs
- SortDescriptionCollection.cs
- VScrollBar.cs
- StateItem.cs
- SendMailErrorEventArgs.cs
- QueryContext.cs
- XamlBuildTaskServices.cs
- RowType.cs
- ApplicationBuildProvider.cs
- OdbcParameterCollection.cs
- CodeRegionDirective.cs
- WebPartZoneBase.cs
- ActionItem.cs
- WorkflowMarkupSerializerMapping.cs
- CloseCollectionAsyncResult.cs
- EntityConnectionStringBuilder.cs
- WpfWebRequestHelper.cs
- CompressEmulationStream.cs
- DbExpressionVisitor_TResultType.cs
- SelectionEditingBehavior.cs
- TextRangeProviderWrapper.cs
- EntitySqlQueryCacheEntry.cs
- EnumMemberAttribute.cs
- TextServicesCompartmentContext.cs
- OleDbConnection.cs
- BidPrivateBase.cs
- TypeForwardedToAttribute.cs
- RoleManagerSection.cs
- Attributes.cs
- ListBoxItemWrapperAutomationPeer.cs
- TextTreeNode.cs
- PackWebRequest.cs
- RemotingConfiguration.cs
- HebrewCalendar.cs
- DesignerVerb.cs
- Control.cs
- JsonReaderDelegator.cs
- CacheAxisQuery.cs
- XmlWrappingReader.cs
- Debug.cs
- PackageStore.cs
- pingexception.cs
- TemplatePropertyEntry.cs
- OutgoingWebRequestContext.cs
- KeyEventArgs.cs
- CodeCatchClause.cs
- HttpPostLocalhostServerProtocol.cs
- StringPropertyBuilder.cs
- TimeSpan.cs
- SqlParameter.cs
- _TLSstream.cs
- PointLightBase.cs
- CompoundFileStreamReference.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- XPathNavigator.cs
- RepeatButtonAutomationPeer.cs
- GZipUtils.cs
- SqlConnectionPoolProviderInfo.cs
- VersionedStreamOwner.cs
- LayoutManager.cs
- WindowsSpinner.cs
- EmptyStringExpandableObjectConverter.cs
- ComponentManagerBroker.cs
- FontResourceCache.cs
- JoinSymbol.cs
- Trace.cs
- ISCIIEncoding.cs
- PointConverter.cs
- Animatable.cs
- SqlEnums.cs
- dbenumerator.cs
- ToolBarTray.cs
- DriveInfo.cs
- ListBoxChrome.cs
- SendMailErrorEventArgs.cs
- WorkflowQueuingService.cs
- Point4DValueSerializer.cs
- PageCatalogPart.cs
- WebFaultClientMessageInspector.cs
- BamlTreeUpdater.cs
- ComponentEditorPage.cs
- ToolStripContainer.cs
- UnmanagedMemoryStreamWrapper.cs
- ViewBase.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- XmlSerializer.cs
- SortedDictionary.cs
- OperationCanceledException.cs
- ScriptingRoleServiceSection.cs