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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- X509Certificate2.cs
- Set.cs
- MonikerSyntaxException.cs
- DataGridDesigner.cs
- XmlSerializerNamespaces.cs
- RepeaterItemCollection.cs
- SrgsGrammar.cs
- LinkedList.cs
- TiffBitmapDecoder.cs
- SuppressMessageAttribute.cs
- EffectiveValueEntry.cs
- ColumnWidthChangingEvent.cs
- SEHException.cs
- RowToParametersTransformer.cs
- JsonReaderDelegator.cs
- FileRegion.cs
- _CookieModule.cs
- BidOverLoads.cs
- ContentOperations.cs
- CommandConverter.cs
- TrackingRecordPreFilter.cs
- WorkflowMarkupSerializerMapping.cs
- PassportAuthentication.cs
- XamlInt32CollectionSerializer.cs
- DateTimeOffsetStorage.cs
- DefaultHttpHandler.cs
- AsymmetricSecurityBindingElement.cs
- XPathSingletonIterator.cs
- Point4D.cs
- InfoCardAsymmetricCrypto.cs
- ReservationNotFoundException.cs
- shaper.cs
- Schema.cs
- EventHandlingScope.cs
- TextEndOfLine.cs
- PenContexts.cs
- ProcessHost.cs
- SoapRpcMethodAttribute.cs
- PageThemeParser.cs
- XNameConverter.cs
- EmptyControlCollection.cs
- FileVersion.cs
- BlobPersonalizationState.cs
- Rect3D.cs
- EmptyQuery.cs
- HttpFileCollection.cs
- CompilerParameters.cs
- SqlBulkCopy.cs
- DataGridBeginningEditEventArgs.cs
- SerializerWriterEventHandlers.cs
- TerminatorSinks.cs
- SafeThreadHandle.cs
- DataGridItem.cs
- PagedDataSource.cs
- CalendarAutoFormat.cs
- SafeSecurityHandles.cs
- ChangeTracker.cs
- DummyDataSource.cs
- DataSourceSelectArguments.cs
- AsymmetricKeyExchangeFormatter.cs
- WsdlBuildProvider.cs
- TextRangeEditLists.cs
- TypePropertyEditor.cs
- KeySpline.cs
- BamlRecordReader.cs
- StructureChangedEventArgs.cs
- EntityContainer.cs
- ProfileManager.cs
- SQLBoolean.cs
- AnimationTimeline.cs
- SourceElementsCollection.cs
- GridViewEditEventArgs.cs
- ToolStripSystemRenderer.cs
- ManagementNamedValueCollection.cs
- FormatSettings.cs
- XmlSchemaSimpleTypeUnion.cs
- UpnEndpointIdentityExtension.cs
- LineInfo.cs
- FacetValueContainer.cs
- DatagridviewDisplayedBandsData.cs
- ConnectionProviderAttribute.cs
- X509Certificate2Collection.cs
- GraphicsContainer.cs
- LinearQuaternionKeyFrame.cs
- ThemeDirectoryCompiler.cs
- StatusBar.cs
- ContextStack.cs
- ToolStripRenderer.cs
- HttpHandlerActionCollection.cs
- UnmanagedMarshal.cs
- _LoggingObject.cs
- MachineKeySection.cs
- OpenTypeCommon.cs
- XmlArrayItemAttribute.cs
- InvalidAsynchronousStateException.cs
- FontFamilyConverter.cs
- Psha1DerivedKeyGenerator.cs
- TextAnchor.cs
- PromptStyle.cs
- Nullable.cs