Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- FacetValues.cs
- XmlSchemaNotation.cs
- PointUtil.cs
- StopStoryboard.cs
- FlowDocumentPageViewerAutomationPeer.cs
- RequestBringIntoViewEventArgs.cs
- EncoderParameters.cs
- ScriptControlDescriptor.cs
- BitmapEffectCollection.cs
- DesignerView.cs
- RegexGroupCollection.cs
- WindowProviderWrapper.cs
- HtmlInputSubmit.cs
- CapabilitiesState.cs
- XmlKeywords.cs
- CompareValidator.cs
- EncryptedPackageFilter.cs
- ProviderSettingsCollection.cs
- BaseParaClient.cs
- AsyncResult.cs
- HasActivatableWorkflowEvent.cs
- URL.cs
- IDispatchConstantAttribute.cs
- EventLogPropertySelector.cs
- ResourceCodeDomSerializer.cs
- rsa.cs
- ConnectionStringsSection.cs
- ImageListStreamer.cs
- WebPartConnection.cs
- UserValidatedEventArgs.cs
- InstanceDataCollectionCollection.cs
- EdmItemCollection.OcAssemblyCache.cs
- DesignerTextViewAdapter.cs
- VoiceSynthesis.cs
- OleDbConnectionInternal.cs
- NamespaceMapping.cs
- ApplicationFileParser.cs
- TemplatePartAttribute.cs
- DataSpaceManager.cs
- ImageAttributes.cs
- MemberNameValidator.cs
- KnownTypes.cs
- ConsoleKeyInfo.cs
- ConfigPathUtility.cs
- TextReader.cs
- HostVisual.cs
- RuleSettings.cs
- BuildProviderAppliesToAttribute.cs
- ObfuscationAttribute.cs
- StartUpEventArgs.cs
- Timer.cs
- BulletDecorator.cs
- OleDbPermission.cs
- WrappedIUnknown.cs
- RightsManagementPermission.cs
- DBConnection.cs
- DataSetUtil.cs
- BitmapImage.cs
- HttpListenerException.cs
- MetadataCollection.cs
- RegexCompiler.cs
- Context.cs
- HandledEventArgs.cs
- ComPlusTraceRecord.cs
- ToolStripItem.cs
- RequestQueue.cs
- SymbolMethod.cs
- NativeWrapper.cs
- ByteConverter.cs
- TableHeaderCell.cs
- ButtonChrome.cs
- bindurihelper.cs
- MissingManifestResourceException.cs
- Semaphore.cs
- XmlDocumentType.cs
- StrokeCollection.cs
- EntityDataSourceDataSelection.cs
- DataBoundControl.cs
- ParameterModifier.cs
- PageCatalogPart.cs
- DrawingVisual.cs
- MemberProjectedSlot.cs
- ProtocolInformationReader.cs
- ColorConverter.cs
- XmlSchemaCollection.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- DataMember.cs
- FontConverter.cs
- WorkflowMarkupSerializerMapping.cs
- ExtendedTransformFactory.cs
- GetLedgerEntryForRecipientRequest.cs
- WebPartMinimizeVerb.cs
- WebBrowsableAttribute.cs
- EncoderExceptionFallback.cs
- ListBindingHelper.cs
- BinaryCommonClasses.cs
- DataSourceXmlSerializer.cs
- OrderedDictionary.cs
- EditorZoneDesigner.cs
- ImageBrush.cs