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
- AppendHelper.cs
- DataGridView.cs
- XmlQualifiedName.cs
- Comparer.cs
- ObjectReferenceStack.cs
- CodeAttributeDeclarationCollection.cs
- PasswordRecovery.cs
- SyndicationLink.cs
- MarshalByValueComponent.cs
- Dictionary.cs
- TextBoxLine.cs
- ContextMenu.cs
- AutomationElementCollection.cs
- ConnectionPointCookie.cs
- HostDesigntimeLicenseContext.cs
- OptimizedTemplateContent.cs
- WorkflowInstanceExtensionManager.cs
- XPathNavigatorReader.cs
- SBCSCodePageEncoding.cs
- StaticTextPointer.cs
- TargetParameterCountException.cs
- RecordBuilder.cs
- SqlUtils.cs
- EntityDataSourceUtil.cs
- TreeNodeBinding.cs
- TypeReference.cs
- DetailsViewUpdatedEventArgs.cs
- XmlRawWriter.cs
- SimpleRecyclingCache.cs
- IsolatedStorageFilePermission.cs
- HtmlFormParameterReader.cs
- GridItemPattern.cs
- ProcessThreadCollection.cs
- ClientEventManager.cs
- RightNameExpirationInfoPair.cs
- TextEvent.cs
- InvokeHandlers.cs
- WebResourceAttribute.cs
- XmlSchemaSimpleContentRestriction.cs
- KeyValueConfigurationCollection.cs
- RemoteWebConfigurationHostServer.cs
- Mutex.cs
- Style.cs
- BitmapEncoder.cs
- SessionEndingCancelEventArgs.cs
- ContainerFilterService.cs
- CheckBox.cs
- WebBrowser.cs
- InstanceKeyView.cs
- EngineSite.cs
- ColumnWidthChangingEvent.cs
- DeleteHelper.cs
- ProtocolsConfiguration.cs
- X509CertificateRecipientServiceCredential.cs
- XmlTypeAttribute.cs
- Constraint.cs
- PathGradientBrush.cs
- ZipIOExtraFieldElement.cs
- Hex.cs
- SecurityRuntime.cs
- PageStatePersister.cs
- ToolStripContentPanel.cs
- SafeBitVector32.cs
- EmptyEnumerable.cs
- OutOfMemoryException.cs
- COSERVERINFO.cs
- CollectionViewGroupInternal.cs
- AsyncPostBackErrorEventArgs.cs
- GroupDescription.cs
- FunctionUpdateCommand.cs
- TableParaClient.cs
- RunClient.cs
- SqlClientWrapperSmiStream.cs
- SafeBuffer.cs
- LicFileLicenseProvider.cs
- DataGridItem.cs
- XmlComplianceUtil.cs
- TextureBrush.cs
- OracleFactory.cs
- TreeViewItem.cs
- XPathDocumentNavigator.cs
- HighlightVisual.cs
- CaseCqlBlock.cs
- EndpointNameMessageFilter.cs
- FlowLayoutPanel.cs
- SmiEventSink_DeferedProcessing.cs
- XsltContext.cs
- Font.cs
- HandledEventArgs.cs
- XmlDownloadManager.cs
- TextEditor.cs
- InputQueue.cs
- KeyValueConfigurationElement.cs
- ScrollableControlDesigner.cs
- TimeSpanConverter.cs
- MenuItemCollection.cs
- XmlAttributes.cs
- DataBindingList.cs
- LayoutUtils.cs
- VerificationException.cs