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
- HighlightVisual.cs
- Rotation3DAnimation.cs
- Size.cs
- SingleAnimationBase.cs
- AssociationType.cs
- DictionaryManager.cs
- PropertyPath.cs
- CompressEmulationStream.cs
- UrlParameterReader.cs
- XPathDocument.cs
- XmlValidatingReaderImpl.cs
- Rotation3D.cs
- ConvertersCollection.cs
- KeyedCollection.cs
- GroupBoxAutomationPeer.cs
- SubpageParaClient.cs
- MailMessageEventArgs.cs
- XmlAnyElementAttributes.cs
- BitmapMetadataEnumerator.cs
- Baml2006ReaderSettings.cs
- CaseExpr.cs
- DependencyPropertyConverter.cs
- ConfigXmlSignificantWhitespace.cs
- HtmlShimManager.cs
- DefaultAutoFieldGenerator.cs
- PointHitTestParameters.cs
- GuidConverter.cs
- Binding.cs
- SystemInfo.cs
- LayoutManager.cs
- EntityContainer.cs
- BrushValueSerializer.cs
- SupportingTokenBindingElement.cs
- FeatureAttribute.cs
- RequestContext.cs
- AppDomainShutdownMonitor.cs
- CngKeyCreationParameters.cs
- PreProcessInputEventArgs.cs
- View.cs
- Stackframe.cs
- Win32Exception.cs
- ByeOperationAsyncResult.cs
- GenericRootAutomationPeer.cs
- PriorityBindingExpression.cs
- ContentWrapperAttribute.cs
- ObjectDataSourceWizardForm.cs
- OleDbEnumerator.cs
- UnsafeNativeMethods.cs
- CodeSnippetTypeMember.cs
- BinaryObjectWriter.cs
- DispatchChannelSink.cs
- AudioBase.cs
- TextEditor.cs
- AutomationEvent.cs
- PermissionSet.cs
- WebPartHelpVerb.cs
- EditorPartCollection.cs
- ReliabilityContractAttribute.cs
- DurableInstancingOptions.cs
- MetabaseServerConfig.cs
- GroupDescription.cs
- XmlEncodedRawTextWriter.cs
- Camera.cs
- ListDictionary.cs
- DataServiceProviderMethods.cs
- ColorContextHelper.cs
- ProvidersHelper.cs
- SqlProvider.cs
- XPathNodePointer.cs
- WmlControlAdapter.cs
- ProgressiveCrcCalculatingStream.cs
- ErrorLog.cs
- XmlRawWriter.cs
- SoapBinding.cs
- ObjectManager.cs
- ReflectionTypeLoadException.cs
- __Error.cs
- MobileSysDescriptionAttribute.cs
- HtmlTextArea.cs
- PointAnimationBase.cs
- TemplateBuilder.cs
- ClientScriptManager.cs
- DashStyles.cs
- DispatcherProcessingDisabled.cs
- _NTAuthentication.cs
- ExtentCqlBlock.cs
- TypedRowGenerator.cs
- CodeSnippetCompileUnit.cs
- Int32Rect.cs
- ExtendedProperty.cs
- AuthenticationConfig.cs
- ApplicationException.cs
- AuthorizationSection.cs
- QuestionEventArgs.cs
- DbConnectionStringCommon.cs
- SkinBuilder.cs
- LookupTables.cs
- ThrowHelper.cs
- DbExpressionBuilder.cs
- MonitoringDescriptionAttribute.cs