Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / Media / Animation / Generated / DiscreteKeyFrames.cs / 1305600 / DiscreteKeyFrames.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 changes from the Thickness Value of
/// the previous key frame to its own Value without interpolation. The
/// change occurs at the KeyTime.
///
public class DiscreteThicknessKeyFrame : ThicknessKeyFrame
{
#region Constructors
///
/// Creates a new DiscreteThicknessKeyFrame.
///
public DiscreteThicknessKeyFrame()
: base()
{
}
///
/// Creates a new DiscreteThicknessKeyFrame.
///
public DiscreteThicknessKeyFrame(Thickness value)
: base(value)
{
}
///
/// Creates a new DiscreteThicknessKeyFrame.
///
public DiscreteThicknessKeyFrame(Thickness value, KeyTime keyTime)
: base(value, keyTime)
{
}
#endregion
#region Freezable
///
/// Implementation of Freezable.CreateInstanceCore .
///
/// The new Freezable.
protected override Freezable CreateInstanceCore()
{
return new DiscreteThicknessKeyFrame();
}
// We don't need to override CloneCore because it won't do anything
#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 < 1.0)
{
return baseValue;
}
else
{
return Value;
}
}
#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 changes from the Thickness Value of
/// the previous key frame to its own Value without interpolation. The
/// change occurs at the KeyTime.
///
public class DiscreteThicknessKeyFrame : ThicknessKeyFrame
{
#region Constructors
///
/// Creates a new DiscreteThicknessKeyFrame.
///
public DiscreteThicknessKeyFrame()
: base()
{
}
///
/// Creates a new DiscreteThicknessKeyFrame.
///
public DiscreteThicknessKeyFrame(Thickness value)
: base(value)
{
}
///
/// Creates a new DiscreteThicknessKeyFrame.
///
public DiscreteThicknessKeyFrame(Thickness value, KeyTime keyTime)
: base(value, keyTime)
{
}
#endregion
#region Freezable
///
/// Implementation of Freezable.CreateInstanceCore .
///
/// The new Freezable.
protected override Freezable CreateInstanceCore()
{
return new DiscreteThicknessKeyFrame();
}
// We don't need to override CloneCore because it won't do anything
#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 < 1.0)
{
return baseValue;
}
else
{
return Value;
}
}
#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
- XPathNavigatorReader.cs
- PasswordTextNavigator.cs
- HttpListenerException.cs
- DirectoryObjectSecurity.cs
- PolicyVersion.cs
- SuppressedPackageProperties.cs
- SerTrace.cs
- DayRenderEvent.cs
- SrgsSemanticInterpretationTag.cs
- RootBrowserWindow.cs
- ExpressionNode.cs
- ClientSideQueueItem.cs
- GradientStopCollection.cs
- MembershipValidatePasswordEventArgs.cs
- Transform3DCollection.cs
- DictionaryEntry.cs
- OleDbSchemaGuid.cs
- CredentialManagerDialog.cs
- Activity.cs
- StrongNameMembershipCondition.cs
- KeyNotFoundException.cs
- DBDataPermissionAttribute.cs
- Quad.cs
- WmpBitmapDecoder.cs
- ManagementPath.cs
- SqlDependencyListener.cs
- EntityDataSourceState.cs
- XamlPoint3DCollectionSerializer.cs
- FixedFindEngine.cs
- XappLauncher.cs
- ParserHooks.cs
- OutOfProcStateClientManager.cs
- OperatingSystem.cs
- WebDisplayNameAttribute.cs
- WebPageTraceListener.cs
- DocumentViewerConstants.cs
- ToolStripPanelRow.cs
- RSAPKCS1SignatureFormatter.cs
- XamlWriter.cs
- UnSafeCharBuffer.cs
- ChildrenQuery.cs
- IdlingCommunicationPool.cs
- ElementFactory.cs
- ColumnBinding.cs
- DataColumnChangeEvent.cs
- ClientProxyGenerator.cs
- SubtreeProcessor.cs
- WebPartConnectionsCancelVerb.cs
- BinaryEditor.cs
- FtpCachePolicyElement.cs
- DetailsViewRowCollection.cs
- MetabaseServerConfig.cs
- GridViewRowPresenter.cs
- CultureInfo.cs
- IIS7WorkerRequest.cs
- ArrayEditor.cs
- LinearQuaternionKeyFrame.cs
- SerializeAbsoluteContext.cs
- DataGridHeaderBorder.cs
- AppDomainEvidenceFactory.cs
- SqlCacheDependencyDatabase.cs
- FlowDocumentReader.cs
- ParenExpr.cs
- StrongTypingException.cs
- MeshGeometry3D.cs
- HijriCalendar.cs
- SqlDependencyListener.cs
- XmlEncodedRawTextWriter.cs
- SQLMembershipProvider.cs
- TreeNodeBindingCollection.cs
- SynchronizedDispatch.cs
- Timer.cs
- TextBox.cs
- ObjectNavigationPropertyMapping.cs
- ellipse.cs
- BaseParser.cs
- DataGridRow.cs
- CheckPair.cs
- SamlAdvice.cs
- PropertyPath.cs
- Select.cs
- FileDialogCustomPlacesCollection.cs
- TreeNodeCollectionEditor.cs
- BulletedListEventArgs.cs
- ConstructorNeedsTagAttribute.cs
- xmlformatgeneratorstatics.cs
- GeneralTransformGroup.cs
- SyndicationPerson.cs
- PrePostDescendentsWalker.cs
- GridEntry.cs
- LinqDataSourceView.cs
- PasswordBox.cs
- WindowShowOrOpenTracker.cs
- BaseTemplateParser.cs
- GifBitmapEncoder.cs
- PrintPageEvent.cs
- OutputCacheModule.cs
- LinqDataSourceStatusEventArgs.cs
- NativeMethods.cs
- FaultDescriptionCollection.cs