Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Media / Animation / Generated / KeyFrames.cs / 1 / KeyFrames.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using MS.Internal; using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal.PresentationFramework; namespace System.Windows.Media.Animation { ////// This class is used as part of a ThicknessKeyFrameCollection in /// conjunction with a KeyFrameThicknessAnimation to animate a /// Thickness property value along a set of key frames. /// public abstract class ThicknessKeyFrame : Freezable, IKeyFrame { #region Constructors ////// Creates a new ThicknessKeyFrame. /// protected ThicknessKeyFrame() : base() { } ////// Creates a new ThicknessKeyFrame. /// protected ThicknessKeyFrame(Thickness value) : this() { Value = value; } ////// Creates a new DiscreteThicknessKeyFrame. /// protected ThicknessKeyFrame(Thickness value, KeyTime keyTime) : this() { Value = value; KeyTime = keyTime; } #endregion #region IKeyFrame ////// KeyTime Property /// public static readonly DependencyProperty KeyTimeProperty = DependencyProperty.Register( "KeyTime", typeof(KeyTime), typeof(ThicknessKeyFrame), new PropertyMetadata(KeyTime.Uniform)); ////// The time at which this KeyFrame's value should be equal to the Value /// property. /// public KeyTime KeyTime { get { return (KeyTime)GetValue(KeyTimeProperty); } set { SetValueInternal(KeyTimeProperty, value); } } ////// Value Property /// public static readonly DependencyProperty ValueProperty = DependencyProperty.Register( "Value", typeof(Thickness), typeof(ThicknessKeyFrame), new PropertyMetadata()); ////// The value of this key frame at the KeyTime specified. /// object IKeyFrame.Value { get { return Value; } set { Value = (Thickness)value; } } ////// The value of this key frame at the KeyTime specified. /// public Thickness Value { get { return (Thickness)GetValue(ValueProperty); } set { SetValueInternal(ValueProperty, value); } } #endregion #region Public Methods ////// Gets the interpolated value of the key frame at the progress value /// provided. The progress value should be calculated in terms of this /// specific key frame. /// public Thickness InterpolateValue( Thickness baseValue, double keyFrameProgress) { if ( keyFrameProgress < 0.0 || keyFrameProgress > 1.0) { throw new ArgumentOutOfRangeException("keyFrameProgress"); } return InterpolateValueCore(baseValue, keyFrameProgress); } #endregion #region Protected Methods ////// This method should be implemented by derived classes to calculate /// the value of this key frame at the progress value provided. /// protected abstract Thickness InterpolateValueCore( Thickness baseValue, double keyFrameProgress); #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using MS.Internal; using System; using System.Collections; using System.ComponentModel; using System.Diagnostics; using System.Windows.Media; using System.Windows.Media.Media3D; using MS.Internal.PresentationFramework; namespace System.Windows.Media.Animation { ////// This class is used as part of a ThicknessKeyFrameCollection in /// conjunction with a KeyFrameThicknessAnimation to animate a /// Thickness property value along a set of key frames. /// public abstract class ThicknessKeyFrame : Freezable, IKeyFrame { #region Constructors ////// Creates a new ThicknessKeyFrame. /// protected ThicknessKeyFrame() : base() { } ////// Creates a new ThicknessKeyFrame. /// protected ThicknessKeyFrame(Thickness value) : this() { Value = value; } ////// Creates a new DiscreteThicknessKeyFrame. /// protected ThicknessKeyFrame(Thickness value, KeyTime keyTime) : this() { Value = value; KeyTime = keyTime; } #endregion #region IKeyFrame ////// KeyTime Property /// public static readonly DependencyProperty KeyTimeProperty = DependencyProperty.Register( "KeyTime", typeof(KeyTime), typeof(ThicknessKeyFrame), new PropertyMetadata(KeyTime.Uniform)); ////// The time at which this KeyFrame's value should be equal to the Value /// property. /// public KeyTime KeyTime { get { return (KeyTime)GetValue(KeyTimeProperty); } set { SetValueInternal(KeyTimeProperty, value); } } ////// Value Property /// public static readonly DependencyProperty ValueProperty = DependencyProperty.Register( "Value", typeof(Thickness), typeof(ThicknessKeyFrame), new PropertyMetadata()); ////// The value of this key frame at the KeyTime specified. /// object IKeyFrame.Value { get { return Value; } set { Value = (Thickness)value; } } ////// The value of this key frame at the KeyTime specified. /// public Thickness Value { get { return (Thickness)GetValue(ValueProperty); } set { SetValueInternal(ValueProperty, value); } } #endregion #region Public Methods ////// Gets the interpolated value of the key frame at the progress value /// provided. The progress value should be calculated in terms of this /// specific key frame. /// public Thickness InterpolateValue( Thickness baseValue, double keyFrameProgress) { if ( keyFrameProgress < 0.0 || keyFrameProgress > 1.0) { throw new ArgumentOutOfRangeException("keyFrameProgress"); } return InterpolateValueCore(baseValue, keyFrameProgress); } #endregion #region Protected Methods ////// This method should be implemented by derived classes to calculate /// the value of this key frame at the progress value provided. /// protected abstract Thickness InterpolateValueCore( Thickness baseValue, double keyFrameProgress); #endregion } } // 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
- CompiledQueryCacheEntry.cs
- OrderByLifter.cs
- ResetableIterator.cs
- ClientScriptManagerWrapper.cs
- ToolStripManager.cs
- _SecureChannel.cs
- OdbcHandle.cs
- EncodingFallbackAwareXmlTextWriter.cs
- DispatcherHooks.cs
- NestedContainer.cs
- ToolStripManager.cs
- cookie.cs
- OuterGlowBitmapEffect.cs
- DesignTimeSiteMapProvider.cs
- Int16AnimationUsingKeyFrames.cs
- Brush.cs
- Atom10FormatterFactory.cs
- SamlNameIdentifierClaimResource.cs
- DrawingContextWalker.cs
- _ListenerRequestStream.cs
- SynchronizationScope.cs
- AppDomain.cs
- TemplateXamlTreeBuilder.cs
- NetworkInformationPermission.cs
- PathFigureCollectionConverter.cs
- CurrentChangingEventArgs.cs
- parserscommon.cs
- TemplatedControlDesigner.cs
- _Win32.cs
- TracingConnection.cs
- UserInitiatedNavigationPermission.cs
- XPathDocument.cs
- DataSysAttribute.cs
- ListBoxItemWrapperAutomationPeer.cs
- EntityProviderFactory.cs
- CriticalHandle.cs
- Environment.cs
- MethodToken.cs
- InfocardInteractiveChannelInitializer.cs
- ConfigurationValues.cs
- ToolStripLocationCancelEventArgs.cs
- HttpCapabilitiesBase.cs
- ProbeMatchesMessageCD1.cs
- EventDescriptor.cs
- UserPreferenceChangedEventArgs.cs
- DocumentApplicationJournalEntry.cs
- ZipFileInfoCollection.cs
- SqlRecordBuffer.cs
- EntityDataSourceState.cs
- XmlSchemaNotation.cs
- BatchWriter.cs
- XamlUtilities.cs
- RegexRunnerFactory.cs
- LogicalTreeHelper.cs
- FrameAutomationPeer.cs
- CreateUserWizardStep.cs
- CreateDataSourceDialog.cs
- SqlDependency.cs
- JsonEnumDataContract.cs
- TextModifierScope.cs
- ControlBindingsConverter.cs
- WebPartZone.cs
- DrawListViewSubItemEventArgs.cs
- httpapplicationstate.cs
- DataGridViewDesigner.cs
- CodeCatchClause.cs
- SafeBitVector32.cs
- DirectoryLocalQuery.cs
- TreeNodeCollectionEditorDialog.cs
- MessageDesigner.cs
- DropSourceBehavior.cs
- Renderer.cs
- AttributeData.cs
- MediaElementAutomationPeer.cs
- PageContentAsyncResult.cs
- SHA1.cs
- MimeObjectFactory.cs
- Pair.cs
- SizeAnimationBase.cs
- HttpVersion.cs
- HtmlShimManager.cs
- TextServicesCompartment.cs
- XpsSerializationManager.cs
- ThreadAttributes.cs
- AnnotationComponentManager.cs
- ToolboxItem.cs
- DomNameTable.cs
- DataException.cs
- wmiprovider.cs
- _NegotiateClient.cs
- StorageFunctionMapping.cs
- TextElementEnumerator.cs
- ClientSession.cs
- SoapExtensionTypeElement.cs
- QueryCursorEventArgs.cs
- Rect3DValueSerializer.cs
- GridViewItemAutomationPeer.cs
- Variant.cs
- BackStopAuthenticationModule.cs
- WorkItem.cs