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
- SystemResourceKey.cs
- RoleManagerModule.cs
- XmlWrappingReader.cs
- SqlException.cs
- LabelEditEvent.cs
- SiteMapNode.cs
- ReflectionUtil.cs
- RayMeshGeometry3DHitTestResult.cs
- SpellCheck.cs
- EntityCommandCompilationException.cs
- VerbConverter.cs
- ErrorWrapper.cs
- ObjectNavigationPropertyMapping.cs
- XmlBindingWorker.cs
- Formatter.cs
- DropDownList.cs
- FixedPosition.cs
- IChannel.cs
- SignatureDescription.cs
- SqlConnectionHelper.cs
- GeneralTransform3DTo2DTo3D.cs
- WebPartCatalogCloseVerb.cs
- StrongNameKeyPair.cs
- ToolStripSplitButton.cs
- SessionStateUtil.cs
- OleDbMetaDataFactory.cs
- Configuration.cs
- LocalizedNameDescriptionPair.cs
- FactoryRecord.cs
- DataGridCellItemAutomationPeer.cs
- AssemblyBuilderData.cs
- CompiledIdentityConstraint.cs
- ExpressionWriter.cs
- CachedFontFace.cs
- ExtendedPropertiesHandler.cs
- SafeRightsManagementEnvironmentHandle.cs
- SqlDataSource.cs
- SchemaCollectionCompiler.cs
- NeutralResourcesLanguageAttribute.cs
- GraphicsContext.cs
- WindowsListViewSubItem.cs
- SQlBooleanStorage.cs
- DataGridViewRowPrePaintEventArgs.cs
- RtType.cs
- ScaleTransform3D.cs
- WsatStrings.cs
- UniqueContractNameValidationBehavior.cs
- XmlCharCheckingWriter.cs
- XmlSchemaType.cs
- SwitchCase.cs
- ReturnEventArgs.cs
- GeneralTransform.cs
- InternalBase.cs
- SettingsProviderCollection.cs
- GeometryGroup.cs
- MostlySingletonList.cs
- CodeDOMProvider.cs
- WindowsGrip.cs
- XmlQueryCardinality.cs
- ShapingEngine.cs
- RequestTimeoutManager.cs
- UrlAuthorizationModule.cs
- DataGridPagerStyle.cs
- InfoCardKeyedHashAlgorithm.cs
- InternalsVisibleToAttribute.cs
- HttpCachePolicy.cs
- UnsafeNativeMethods.cs
- LogReservationCollection.cs
- BitVector32.cs
- KeyValuePair.cs
- DbDataReader.cs
- DataKeyArray.cs
- DefaultObjectMappingItemCollection.cs
- TypeElement.cs
- M3DUtil.cs
- JsonDeserializer.cs
- ResXBuildProvider.cs
- FlowLayoutPanelDesigner.cs
- SourceFilter.cs
- TemplateGroupCollection.cs
- SchemaMerger.cs
- XsltCompileContext.cs
- linebase.cs
- SessionStateUtil.cs
- DefaultExpression.cs
- StackOverflowException.cs
- SoapSchemaExporter.cs
- login.cs
- ListDataBindEventArgs.cs
- FixedSOMSemanticBox.cs
- Identity.cs
- DesignerActionHeaderItem.cs
- PtsHost.cs
- counter.cs
- EventSource.cs
- IBuiltInEvidence.cs
- PersonalizablePropertyEntry.cs
- X509Certificate2.cs
- ValidationRuleCollection.cs
- PriorityBinding.cs