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
- GridViewRowEventArgs.cs
- XmlUtil.cs
- DataGridViewCellValueEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- SqlProviderServices.cs
- SqlNodeTypeOperators.cs
- ControlCachePolicy.cs
- CharConverter.cs
- HitTestDrawingContextWalker.cs
- EdmFunctions.cs
- Expressions.cs
- MethodMessage.cs
- OleDbParameter.cs
- XmlSerializerAssemblyAttribute.cs
- _ShellExpression.cs
- PagerSettings.cs
- FontUnit.cs
- DocumentViewer.cs
- XamlClipboardData.cs
- HttpDebugHandler.cs
- shaper.cs
- ManagementClass.cs
- PackageFilter.cs
- DocumentsTrace.cs
- ComplexObject.cs
- ActiveDocumentEvent.cs
- WebPartVerb.cs
- XmlMapping.cs
- Substitution.cs
- XsltLoader.cs
- HttpApplicationFactory.cs
- HttpFileCollection.cs
- CodeTypeMemberCollection.cs
- ListItemCollection.cs
- BitmapScalingModeValidation.cs
- FactorySettingsElement.cs
- GridToolTip.cs
- XsdBuildProvider.cs
- TimeZone.cs
- NativeMethods.cs
- UrlMappingCollection.cs
- ControlBuilder.cs
- CryptoStream.cs
- dtdvalidator.cs
- ClientUrlResolverWrapper.cs
- XamlReaderHelper.cs
- DispatchProxy.cs
- ListSourceHelper.cs
- Int32RectConverter.cs
- MarginsConverter.cs
- AsyncOperationManager.cs
- Label.cs
- SecurityProtocolFactory.cs
- XPathNodeHelper.cs
- ReadOnlyObservableCollection.cs
- LinkTarget.cs
- SchemaComplexType.cs
- SafeCryptoHandles.cs
- PasswordDeriveBytes.cs
- XPathNodeIterator.cs
- UnsafeNativeMethods.cs
- XmlArrayAttribute.cs
- DataGridViewImageCell.cs
- Substitution.cs
- Odbc32.cs
- XmlCharType.cs
- RegexReplacement.cs
- CommandID.cs
- ResourceSet.cs
- Maps.cs
- WrappedIUnknown.cs
- Globals.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- PopOutPanel.cs
- SourceFileBuildProvider.cs
- SqlResolver.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- PersistenceException.cs
- TableCellCollection.cs
- DataObjectEventArgs.cs
- InvalidCastException.cs
- TextEditorLists.cs
- ToolStripDesignerUtils.cs
- StreamMarshaler.cs
- ContainerAction.cs
- XmlHelper.cs
- DataGridAutoFormatDialog.cs
- SHA384.cs
- Monitor.cs
- ScrollChangedEventArgs.cs
- SuppressIldasmAttribute.cs
- XmlNodeChangedEventManager.cs
- XmlElementAttribute.cs
- VScrollBar.cs
- SHA384CryptoServiceProvider.cs
- PageSetupDialog.cs
- CompositeDuplexElement.cs
- SystemGatewayIPAddressInformation.cs
- ListItemConverter.cs
- DataObject.cs