Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- UpdateDelegates.Generated.cs
- TypeSource.cs
- FrameAutomationPeer.cs
- BitmapEffect.cs
- MetafileHeader.cs
- InputQueueChannelAcceptor.cs
- codemethodreferenceexpression.cs
- SerializerDescriptor.cs
- CssTextWriter.cs
- SqlParameterizer.cs
- TerminateDesigner.cs
- TreeViewCancelEvent.cs
- DataSourceSerializationException.cs
- Helpers.cs
- CodeDesigner.cs
- ListBindableAttribute.cs
- DescendantQuery.cs
- MsmqIntegrationChannelListener.cs
- XmlSchemaChoice.cs
- SynchronizationContext.cs
- AlphabeticalEnumConverter.cs
- MsmqTransportReceiveParameters.cs
- PasswordTextNavigator.cs
- MSG.cs
- MemberAccessException.cs
- MenuAdapter.cs
- TableProviderWrapper.cs
- PixelFormatConverter.cs
- PropertyItemInternal.cs
- PopupControlService.cs
- JsonDataContract.cs
- ResolveMatchesMessageCD1.cs
- WindowsTokenRoleProvider.cs
- ObjectPropertyMapping.cs
- WorkflowWebService.cs
- ResourceManager.cs
- connectionpool.cs
- DesignerOptionService.cs
- Attributes.cs
- RichTextBoxAutomationPeer.cs
- FontWeightConverter.cs
- HttpInputStream.cs
- RequestCacheEntry.cs
- FrameworkContentElement.cs
- IPAddressCollection.cs
- BindingNavigator.cs
- XmlNullResolver.cs
- DetailsViewUpdateEventArgs.cs
- DataServiceContext.cs
- PageAdapter.cs
- ConsumerConnectionPointCollection.cs
- XmlHierarchicalDataSourceView.cs
- TextTreeObjectNode.cs
- RightsManagementPermission.cs
- DmlSqlGenerator.cs
- Single.cs
- QueryStatement.cs
- SplineKeyFrames.cs
- ACE.cs
- ISFClipboardData.cs
- EntryWrittenEventArgs.cs
- Constants.cs
- NumericExpr.cs
- NullableConverter.cs
- SqlGatherProducedAliases.cs
- MessageSecurityOverTcpElement.cs
- DataControlPagerLinkButton.cs
- XslException.cs
- SurrogateChar.cs
- WebBrowser.cs
- FocusWithinProperty.cs
- RepeatInfo.cs
- RecordConverter.cs
- DateTime.cs
- DataObjectMethodAttribute.cs
- Model3D.cs
- DataGridViewLinkColumn.cs
- SqlConnectionHelper.cs
- DesignerForm.cs
- File.cs
- HtmlTernaryTree.cs
- EdmItemCollection.OcAssemblyCache.cs
- SqlDataReaderSmi.cs
- DeleteMemberBinder.cs
- WindowsAuthenticationEventArgs.cs
- HyperlinkAutomationPeer.cs
- NumberSubstitution.cs
- MoveSizeWinEventHandler.cs
- ObjectDataSourceMethodEventArgs.cs
- MDIClient.cs
- smtppermission.cs
- LicFileLicenseProvider.cs
- ToolStripMenuItem.cs
- AxisAngleRotation3D.cs
- CodeMethodReturnStatement.cs
- Aes.cs
- FileLogRecordHeader.cs
- ModelTreeManager.cs
- NeedSkipTokenVisitor.cs
- basemetadatamappingvisitor.cs