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 / LinearKeyFrames.cs / 1 / LinearKeyFrames.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.
///
/// This ThicknessKeyFrame interpolates the between the Thickness Value of
/// the previous key frame and its own Value linearly to produce its output value.
///
public partial class LinearThicknessKeyFrame : ThicknessKeyFrame
{
#region Constructors
///
/// Creates a new LinearThicknessKeyFrame.
///
public LinearThicknessKeyFrame()
: base()
{
}
///
/// Creates a new LinearThicknessKeyFrame.
///
public LinearThicknessKeyFrame(Thickness value)
: base(value)
{
}
///
/// Creates a new LinearThicknessKeyFrame.
///
public LinearThicknessKeyFrame(Thickness value, KeyTime keyTime)
: base(value, keyTime)
{
}
#endregion
#region Freezable
///
/// Implementation of Freezable.CreateInstanceCore .
///
/// The new Freezable.
protected override Freezable CreateInstanceCore()
{
return new LinearThicknessKeyFrame();
}
#endregion
#region ThicknessKeyFrame
///
/// Implemented to linearly interpolate between the baseValue and the
/// Value of this KeyFrame using the keyFrameProgress.
///
protected override Thickness InterpolateValueCore(Thickness baseValue, double keyFrameProgress)
{
if (keyFrameProgress == 0.0)
{
return baseValue;
}
else if (keyFrameProgress == 1.0)
{
return Value;
}
else
{
return AnimatedTypeHelpers.InterpolateThickness(baseValue, Value, 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.
///
/// This ThicknessKeyFrame interpolates the between the Thickness Value of
/// the previous key frame and its own Value linearly to produce its output value.
///
public partial class LinearThicknessKeyFrame : ThicknessKeyFrame
{
#region Constructors
///
/// Creates a new LinearThicknessKeyFrame.
///
public LinearThicknessKeyFrame()
: base()
{
}
///
/// Creates a new LinearThicknessKeyFrame.
///
public LinearThicknessKeyFrame(Thickness value)
: base(value)
{
}
///
/// Creates a new LinearThicknessKeyFrame.
///
public LinearThicknessKeyFrame(Thickness value, KeyTime keyTime)
: base(value, keyTime)
{
}
#endregion
#region Freezable
///
/// Implementation of Freezable.CreateInstanceCore .
///
/// The new Freezable.
protected override Freezable CreateInstanceCore()
{
return new LinearThicknessKeyFrame();
}
#endregion
#region ThicknessKeyFrame
///
/// Implemented to linearly interpolate between the baseValue and the
/// Value of this KeyFrame using the keyFrameProgress.
///
protected override Thickness InterpolateValueCore(Thickness baseValue, double keyFrameProgress)
{
if (keyFrameProgress == 0.0)
{
return baseValue;
}
else if (keyFrameProgress == 1.0)
{
return Value;
}
else
{
return AnimatedTypeHelpers.InterpolateThickness(baseValue, Value, 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
- ExtensionQuery.cs
- MemoryMappedFileSecurity.cs
- EFAssociationProvider.cs
- EntityCollection.cs
- SoapHeaderAttribute.cs
- RoleManagerEventArgs.cs
- FlowchartDesignerCommands.cs
- PropertyGrid.cs
- DateTimeStorage.cs
- HttpModuleAction.cs
- BamlWriter.cs
- AnimationStorage.cs
- X509SecurityTokenAuthenticator.cs
- IdnMapping.cs
- ObjectFullSpanRewriter.cs
- IPPacketInformation.cs
- TypeSystemHelpers.cs
- TreeNodeBindingCollection.cs
- SettingsAttributeDictionary.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- XPathNode.cs
- TextAction.cs
- QueryOperationResponseOfT.cs
- Primitive.cs
- Point3DIndependentAnimationStorage.cs
- CorrelationManager.cs
- FactoryId.cs
- GeometryGroup.cs
- SQLMoneyStorage.cs
- OdbcEnvironment.cs
- InfoCardSymmetricCrypto.cs
- WindowsSolidBrush.cs
- PropertyManager.cs
- CategoryAttribute.cs
- QuerySelectOp.cs
- DiscoveryClientDuplexChannel.cs
- ThaiBuddhistCalendar.cs
- DetailsViewModeEventArgs.cs
- DeleteHelper.cs
- PageCache.cs
- Message.cs
- XmlAggregates.cs
- VirtualDirectoryMappingCollection.cs
- GridViewDeleteEventArgs.cs
- EntityDataSourceMemberPath.cs
- XmlSubtreeReader.cs
- SqlClientFactory.cs
- CqlQuery.cs
- FixedSchema.cs
- TransportManager.cs
- ToolboxService.cs
- ArrayWithOffset.cs
- WindowsImpersonationContext.cs
- SyndicationDeserializer.cs
- PersonalizationProviderHelper.cs
- BaseTemplateParser.cs
- RectangleHotSpot.cs
- ScriptingSectionGroup.cs
- MenuItemCollection.cs
- IdnElement.cs
- TagElement.cs
- ClaimSet.cs
- FloatUtil.cs
- DataSourceHelper.cs
- TypeSource.cs
- SendMessageContent.cs
- FlowPosition.cs
- Wizard.cs
- DrawingAttributesDefaultValueFactory.cs
- MessagePropertyVariants.cs
- CodeTypeDelegate.cs
- ConstrainedDataObject.cs
- RoleGroupCollection.cs
- AssemblyBuilderData.cs
- ClusterRegistryConfigurationProvider.cs
- uribuilder.cs
- PrincipalPermission.cs
- ImageMetadata.cs
- ProcessingInstructionAction.cs
- UIElementParaClient.cs
- MD5CryptoServiceProvider.cs
- InternalConfigHost.cs
- PrefixQName.cs
- EventToken.cs
- ButtonAutomationPeer.cs
- entitydatasourceentitysetnameconverter.cs
- NamedPipeTransportSecurityElement.cs
- XhtmlStyleClass.cs
- CqlLexer.cs
- WebPartEditorApplyVerb.cs
- MarkupCompilePass1.cs
- CheckBoxList.cs
- FilteredAttributeCollection.cs
- DialogBaseForm.cs
- CellParaClient.cs
- Collection.cs
- ClientSponsor.cs
- AuthenticationModuleElementCollection.cs
- WindowManager.cs
- ChangeBlockUndoRecord.cs