Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- OutgoingWebResponseContext.cs
- Point3D.cs
- CellParaClient.cs
- uribuilder.cs
- XmlSchemaParticle.cs
- DataGridViewRowEventArgs.cs
- CheckBoxAutomationPeer.cs
- MimeWriter.cs
- MostlySingletonList.cs
- ColorKeyFrameCollection.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- TextEditorMouse.cs
- ObfuscationAttribute.cs
- CellQuery.cs
- MenuBindingsEditor.cs
- OutputCacheModule.cs
- SeverityFilter.cs
- Vector3DCollection.cs
- BroadcastEventHelper.cs
- LogReservationCollection.cs
- OleAutBinder.cs
- AtomContentProperty.cs
- TemplateNameScope.cs
- PathParser.cs
- Validator.cs
- SecurityAccessDeniedException.cs
- IResourceProvider.cs
- PrintDocument.cs
- OrCondition.cs
- CollectionContainer.cs
- TrackingRecord.cs
- SByteConverter.cs
- BrowsableAttribute.cs
- StringValidatorAttribute.cs
- _Semaphore.cs
- DoubleAnimationBase.cs
- HttpListenerContext.cs
- CustomErrorsSectionWrapper.cs
- Normalization.cs
- FilteredAttributeCollection.cs
- XDeferredAxisSource.cs
- TextBoxRenderer.cs
- OracleInternalConnection.cs
- DiagnosticsConfigurationHandler.cs
- IPAddress.cs
- JavaScriptSerializer.cs
- Range.cs
- ColorConvertedBitmapExtension.cs
- ApplicationProxyInternal.cs
- WmpBitmapDecoder.cs
- VoiceObjectToken.cs
- ValidationErrorEventArgs.cs
- TemplatedMailWebEventProvider.cs
- XmlSerializerSection.cs
- FlowSwitchDesigner.xaml.cs
- AxHost.cs
- CharacterBuffer.cs
- PopupRootAutomationPeer.cs
- TreeNode.cs
- PrivilegedConfigurationManager.cs
- HttpListenerContext.cs
- RelatedView.cs
- SafeLibraryHandle.cs
- ChangeTracker.cs
- OrderedDictionary.cs
- RegexTree.cs
- CryptoStream.cs
- AuthenticationSection.cs
- ToolStripControlHost.cs
- DateTimeOffsetConverter.cs
- _Events.cs
- ExtractedStateEntry.cs
- DataRecordInternal.cs
- DrawingCollection.cs
- SamlSerializer.cs
- ConnectionPoolManager.cs
- ReflectionPermission.cs
- Component.cs
- AssemblySettingAttributes.cs
- OdbcConnectionHandle.cs
- MethodBody.cs
- SchemaNames.cs
- WsatAdminException.cs
- BCLDebug.cs
- WindowsFormsDesignerOptionService.cs
- MenuItemBinding.cs
- DBConcurrencyException.cs
- Cloud.cs
- SessionStateSection.cs
- AppDomainEvidenceFactory.cs
- Rijndael.cs
- DocumentXmlWriter.cs
- DbModificationCommandTree.cs
- TextTrailingWordEllipsis.cs
- Validator.cs
- DbDataAdapter.cs
- DoubleLink.cs
- ApplyImportsAction.cs
- OrderingExpression.cs
- Wildcard.cs