Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- ListViewItemSelectionChangedEvent.cs
- Calendar.cs
- BitmapEditor.cs
- BamlTreeNode.cs
- ToolStripDropDownItem.cs
- PeerTransportListenAddressConverter.cs
- EventQueueState.cs
- ParentUndoUnit.cs
- TypeKeyValue.cs
- DbParameterCollection.cs
- StringOutput.cs
- ParallelDesigner.cs
- FileUtil.cs
- EventWaitHandleSecurity.cs
- WindowsHyperlink.cs
- CounterCreationDataCollection.cs
- ConditionValidator.cs
- AlignmentYValidation.cs
- VisualStateGroup.cs
- ObjectDataProvider.cs
- ConfigurationSectionGroup.cs
- ScriptDescriptor.cs
- ListBindingHelper.cs
- sqlmetadatafactory.cs
- DateBoldEvent.cs
- AnnotationMap.cs
- DetailsViewCommandEventArgs.cs
- ConfigXmlWhitespace.cs
- PropertyChange.cs
- DefaultWorkflowTransactionService.cs
- Error.cs
- Debug.cs
- CompilationUtil.cs
- HttpResponseMessageProperty.cs
- DataMemberConverter.cs
- SpotLight.cs
- InheritanceAttribute.cs
- BitmapEncoder.cs
- SqlProfileProvider.cs
- StateDesigner.CommentLayoutGlyph.cs
- TraceListeners.cs
- LicenseException.cs
- ToolBarButtonDesigner.cs
- Convert.cs
- TextElementCollectionHelper.cs
- XmlAttributeAttribute.cs
- UdpTransportBindingElement.cs
- ParagraphResult.cs
- MulticastDelegate.cs
- CachedPathData.cs
- StackBuilderSink.cs
- SafeProcessHandle.cs
- DependsOnAttribute.cs
- OdbcInfoMessageEvent.cs
- _SSPIWrapper.cs
- WithParamAction.cs
- AnnotationAdorner.cs
- ImageAttributes.cs
- PageBreakRecord.cs
- DependencyPropertyKey.cs
- RenderingBiasValidation.cs
- BufferBuilder.cs
- HttpContextWrapper.cs
- ToolBarButtonClickEvent.cs
- XmlChildEnumerator.cs
- CompilationLock.cs
- FixedSOMTextRun.cs
- IISMapPath.cs
- SqlMethodTransformer.cs
- RuntimeVariablesExpression.cs
- Events.cs
- DictionaryBase.cs
- SingleAnimationUsingKeyFrames.cs
- HtmlContainerControl.cs
- FileVersionInfo.cs
- WebHttpSecurityModeHelper.cs
- CursorInteropHelper.cs
- ReaderOutput.cs
- DesignerToolStripControlHost.cs
- WebReferencesBuildProvider.cs
- CodeSnippetStatement.cs
- RowToFieldTransformer.cs
- NetTcpBindingElement.cs
- TypeSystemHelpers.cs
- DefaultValueConverter.cs
- Win32.cs
- KeyboardInputProviderAcquireFocusEventArgs.cs
- HostingEnvironment.cs
- _NestedSingleAsyncResult.cs
- DataGridViewCellLinkedList.cs
- TraceUtility.cs
- ToolboxItemAttribute.cs
- basemetadatamappingvisitor.cs
- SSmlParser.cs
- WSSecurityJan2004.cs
- TableDetailsRow.cs
- NavigationFailedEventArgs.cs
- HtmlInputControl.cs
- SafeHandles.cs
- XPathNodeList.cs