Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / Generated / KeyFrames.cs / 1305600 / 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
- GridViewRowPresenterBase.cs
- ImageCodecInfo.cs
- CommandConverter.cs
- SendSecurityHeaderElement.cs
- OdbcReferenceCollection.cs
- HMACSHA384.cs
- RegexWorker.cs
- RecognizerStateChangedEventArgs.cs
- MultiView.cs
- PropertyDescriptor.cs
- PlainXmlWriter.cs
- QueryIntervalOp.cs
- SizeChangedInfo.cs
- TypeUsage.cs
- SettingsSavedEventArgs.cs
- WindowsPen.cs
- ThreadAttributes.cs
- GraphicsPathIterator.cs
- RowUpdatingEventArgs.cs
- HtmlMeta.cs
- ClientRoleProvider.cs
- TreeBuilder.cs
- FileDialogCustomPlacesCollection.cs
- CredentialManagerDialog.cs
- BinaryNode.cs
- VariableQuery.cs
- TimeSpanStorage.cs
- StaticSiteMapProvider.cs
- ContentDisposition.cs
- DaylightTime.cs
- EditorAttributeInfo.cs
- ListControl.cs
- TickBar.cs
- ReadOnlyPermissionSet.cs
- DataGridViewComboBoxEditingControl.cs
- Scene3D.cs
- XmlILStorageConverter.cs
- EntityDataSourceValidationException.cs
- GeneralTransform3DCollection.cs
- HttpListenerContext.cs
- RemotingConfigParser.cs
- EntityWrapper.cs
- CustomCredentialPolicy.cs
- DataGridColumnCollection.cs
- XamlFilter.cs
- WebPartHelpVerb.cs
- FileStream.cs
- XmlDataSourceNodeDescriptor.cs
- ResXBuildProvider.cs
- XmlValueConverter.cs
- MarkupExtensionReturnTypeAttribute.cs
- KerberosTicketHashIdentifierClause.cs
- ChannelManager.cs
- ToolStripSplitStackLayout.cs
- BufferAllocator.cs
- BinaryMethodMessage.cs
- FlowLayoutSettings.cs
- CryptoKeySecurity.cs
- XsltLoader.cs
- altserialization.cs
- TableAutomationPeer.cs
- ScaleTransform.cs
- PipelineModuleStepContainer.cs
- ContextActivityUtils.cs
- XmlCollation.cs
- MutexSecurity.cs
- BitmapFrameEncode.cs
- ServiceDescriptionSerializer.cs
- EnumBuilder.cs
- ControlDesigner.cs
- ProtocolsSection.cs
- ResXResourceSet.cs
- CorrelationTokenInvalidatedHandler.cs
- ellipse.cs
- METAHEADER.cs
- UserControlBuildProvider.cs
- ResolveMatchesMessage11.cs
- SID.cs
- XmlILStorageConverter.cs
- CodeRemoveEventStatement.cs
- RegexParser.cs
- MissingFieldException.cs
- DataPagerFieldItem.cs
- NamespaceDecl.cs
- ArrayExtension.cs
- XmlDataSourceNodeDescriptor.cs
- SqlProviderUtilities.cs
- MailWriter.cs
- RTLAwareMessageBox.cs
- GlobalizationSection.cs
- SkinIDTypeConverter.cs
- Win32PrintDialog.cs
- BamlRecordReader.cs
- NullableLongMinMaxAggregationOperator.cs
- Application.cs
- SymbolUsageManager.cs
- CodeLabeledStatement.cs
- Helpers.cs
- TokenBasedSet.cs
- PeerCollaborationPermission.cs