Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- VerificationAttribute.cs
- RawKeyboardInputReport.cs
- AssemblyAttributesGoHere.cs
- CaseExpr.cs
- ExpandSegment.cs
- FontSourceCollection.cs
- XmlBindingWorker.cs
- AttachedProperty.cs
- ExpressionBuilderContext.cs
- DataGridViewButtonColumn.cs
- DataObjectCopyingEventArgs.cs
- SqlCacheDependencyDatabase.cs
- TypeTypeConverter.cs
- CodeGroup.cs
- GroupBoxDesigner.cs
- DateTimeOffsetConverter.cs
- LongAverageAggregationOperator.cs
- IdentityManager.cs
- SAPIEngineTypes.cs
- ConfigXmlDocument.cs
- WorkflowTraceTransfer.cs
- Activator.cs
- FixedDocumentPaginator.cs
- XpsThumbnail.cs
- SqlDataSourceFilteringEventArgs.cs
- BulletedList.cs
- ArraySegment.cs
- SslStream.cs
- DbConnectionOptions.cs
- _HelperAsyncResults.cs
- FlowDocumentView.cs
- TimeSpan.cs
- ToolStripPanelRow.cs
- RunInstallerAttribute.cs
- PageThemeBuildProvider.cs
- ObservableCollection.cs
- ReadingWritingEntityEventArgs.cs
- InvokePattern.cs
- EventToken.cs
- DataSourceExpression.cs
- TransformedBitmap.cs
- XmlSerializerAssemblyAttribute.cs
- DataListItemCollection.cs
- BoolExpr.cs
- GenericEnumerator.cs
- EventManager.cs
- TextServicesDisplayAttributePropertyRanges.cs
- StyleBamlTreeBuilder.cs
- InputQueueChannel.cs
- HtmlGenericControl.cs
- ItemChangedEventArgs.cs
- BezierSegment.cs
- Span.cs
- SequenceQuery.cs
- Size.cs
- SystemIPGlobalStatistics.cs
- MulticastOption.cs
- DependencyObjectType.cs
- CellQuery.cs
- UITypeEditors.cs
- XmlMemberMapping.cs
- ListenerElementsCollection.cs
- SelectedDatesCollection.cs
- Touch.cs
- ICspAsymmetricAlgorithm.cs
- DataShape.cs
- ColumnWidthChangingEvent.cs
- NativeMethods.cs
- MappingException.cs
- DelimitedListTraceListener.cs
- PropertyGridView.cs
- ConfigurationValidatorAttribute.cs
- DataGridTable.cs
- DocumentViewerBaseAutomationPeer.cs
- ElementAction.cs
- _LoggingObject.cs
- DynamicPropertyHolder.cs
- TranslateTransform3D.cs
- StrongNamePublicKeyBlob.cs
- EventLogEntryCollection.cs
- ZipIOLocalFileBlock.cs
- HTTPRemotingHandler.cs
- ReferenceConverter.cs
- WebPermission.cs
- ListSourceHelper.cs
- XmlPreloadedResolver.cs
- CannotUnloadAppDomainException.cs
- WebServiceFaultDesigner.cs
- HasCopySemanticsAttribute.cs
- MatrixUtil.cs
- MatrixTransform.cs
- HtmlAnchor.cs
- WrappedIUnknown.cs
- NamespaceEmitter.cs
- SafeNativeMethodsMilCoreApi.cs
- SerializationHelper.cs
- HttpCapabilitiesBase.cs
- ApplicationServicesHostFactory.cs
- TraceContextRecord.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs