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 / DiscreteKeyFrames.cs / 1 / 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
- ArgumentNullException.cs
- TextPenaltyModule.cs
- Help.cs
- DynamicVirtualDiscoSearcher.cs
- DataBinding.cs
- Transform3D.cs
- EFAssociationProvider.cs
- AsyncStreamReader.cs
- HtmlInputSubmit.cs
- DataGridCheckBoxColumn.cs
- UDPClient.cs
- OleDbReferenceCollection.cs
- DialogWindow.cs
- ClientSponsor.cs
- LazyTextWriterCreator.cs
- GridItemPattern.cs
- GridItemCollection.cs
- Filter.cs
- ContextProperty.cs
- CollectionContainer.cs
- Main.cs
- CapabilitiesAssignment.cs
- Pair.cs
- BaseComponentEditor.cs
- PointConverter.cs
- TextEndOfLine.cs
- TimeSpanConverter.cs
- ClockController.cs
- StrongNameUtility.cs
- DataGridHeaderBorder.cs
- AnnotationComponentChooser.cs
- InheritedPropertyChangedEventArgs.cs
- MetaForeignKeyColumn.cs
- HtmlControl.cs
- ByteConverter.cs
- Unit.cs
- AttachedPropertyMethodSelector.cs
- CodeNamespaceCollection.cs
- FileDialog_Vista.cs
- ItemsPresenter.cs
- CacheAxisQuery.cs
- ProcessManager.cs
- SimpleHandlerFactory.cs
- FileDialog.cs
- ApplyImportsAction.cs
- DirectoryInfo.cs
- SqlReferenceCollection.cs
- EntityProviderFactory.cs
- MissingSatelliteAssemblyException.cs
- ParenthesizePropertyNameAttribute.cs
- CharacterMetrics.cs
- XamlFigureLengthSerializer.cs
- XmlSortKeyAccumulator.cs
- AutoResetEvent.cs
- WSTrust.cs
- BindingListCollectionView.cs
- MetabaseServerConfig.cs
- PerformanceCounterTraceRecord.cs
- DataControlField.cs
- HandlerWithFactory.cs
- Int16Storage.cs
- WinInetCache.cs
- DuplicateWaitObjectException.cs
- ConfigurationPropertyCollection.cs
- DataServiceExpressionVisitor.cs
- CompiledRegexRunner.cs
- Stream.cs
- UndoUnit.cs
- MediaSystem.cs
- MetadataItem.cs
- SQLInt32.cs
- XmlWrappingReader.cs
- XmlDictionaryWriter.cs
- VerticalAlignConverter.cs
- IsolatedStorageFilePermission.cs
- PopOutPanel.cs
- TextBox.cs
- AutoSizeComboBox.cs
- RegexTree.cs
- VerificationAttribute.cs
- InstanceKeyCollisionException.cs
- TemplateNameScope.cs
- WebPartConnectionsCloseVerb.cs
- MenuItemCollection.cs
- DocumentsTrace.cs
- ListComponentEditorPage.cs
- AccessViolationException.cs
- GetPageCompletedEventArgs.cs
- LabelDesigner.cs
- SaveFileDialog.cs
- TextEditor.cs
- ReachFixedDocumentSerializer.cs
- ObjectDataSourceWizardForm.cs
- XmlTextReaderImpl.cs
- UserControlFileEditor.cs
- StatusBarItem.cs
- StandardOleMarshalObject.cs
- GridItemPattern.cs
- OracleNumber.cs
- IdnMapping.cs