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
- EmptyEnumerator.cs
- FileChangesMonitor.cs
- MachineKeySection.cs
- VisualStyleRenderer.cs
- ServiceParser.cs
- TimeSpanValidatorAttribute.cs
- _WinHttpWebProxyDataBuilder.cs
- AdapterUtil.cs
- ServiceObjectContainer.cs
- ToolStripTemplateNode.cs
- ToolStripSplitStackLayout.cs
- ReachIDocumentPaginatorSerializerAsync.cs
- GeneralTransformGroup.cs
- JoinSymbol.cs
- PartialTrustVisibleAssemblyCollection.cs
- TypeUsage.cs
- SslStream.cs
- AutoResetEvent.cs
- unsafeIndexingFilterStream.cs
- CultureTable.cs
- ChannelSinkStacks.cs
- EventPrivateKey.cs
- Constraint.cs
- TextElementEnumerator.cs
- GridViewHeaderRowPresenter.cs
- CollectionChangedEventManager.cs
- ApplicationException.cs
- DiscardableAttribute.cs
- Line.cs
- BoundPropertyEntry.cs
- OperationInvokerBehavior.cs
- DynamicRouteExpression.cs
- RegistrationServices.cs
- ContentPlaceHolder.cs
- EntityFrameworkVersions.cs
- DocumentGrid.cs
- ObjectDataSourceDisposingEventArgs.cs
- DirectoryNotFoundException.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- Matrix3DValueSerializer.cs
- DataReaderContainer.cs
- SmtpNetworkElement.cs
- IteratorFilter.cs
- DesignerListAdapter.cs
- ControlTemplate.cs
- WebPartsPersonalizationAuthorization.cs
- PointLightBase.cs
- TaiwanLunisolarCalendar.cs
- ProcessModule.cs
- FlowDocumentFormatter.cs
- Transactions.cs
- Label.cs
- IpcClientChannel.cs
- SqlDataSourceCustomCommandPanel.cs
- TransformerInfo.cs
- XmlSchemaFacet.cs
- PropertyConverter.cs
- SelectionPatternIdentifiers.cs
- RSAPKCS1KeyExchangeFormatter.cs
- PropertyRef.cs
- DoubleLink.cs
- Control.cs
- JsonStringDataContract.cs
- sqlmetadatafactory.cs
- ColorTranslator.cs
- DetailsView.cs
- SafeRegistryHandle.cs
- StylusCaptureWithinProperty.cs
- Vector3DValueSerializer.cs
- ExtendedPropertyInfo.cs
- ZoneMembershipCondition.cs
- DbSourceParameterCollection.cs
- Vars.cs
- CapabilitiesAssignment.cs
- AppearanceEditorPart.cs
- DataGridViewHeaderCell.cs
- _IPv6Address.cs
- DocumentationServerProtocol.cs
- ControlType.cs
- CryptoHandle.cs
- XpsFontSubsetter.cs
- AddInActivator.cs
- DesignerUtils.cs
- SyndicationItem.cs
- OperationSelectorBehavior.cs
- ColorConvertedBitmap.cs
- DesignerVerbCollection.cs
- PriorityChain.cs
- IDictionary.cs
- XmlnsDictionary.cs
- WhiteSpaceTrimStringConverter.cs
- BinaryObjectWriter.cs
- FormView.cs
- X509IssuerSerialKeyIdentifierClause.cs
- BaseTreeIterator.cs
- ProtocolsConfiguration.cs
- TextAutomationPeer.cs
- VarRefManager.cs
- DeferredReference.cs
- Knowncolors.cs