Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / Animation / HandoffBehavior.cs / 1 / HandoffBehavior.cs
// HandoffBehavior.cs
using MS.Internal.PresentationCore; // FriendAccessAllowed
namespace System.Windows.Media.Animation
{
///
/// Used to specify how new animations will interact with any current
/// animations already applied to a property.
///
public enum HandoffBehavior
{
///
/// New animations will completely replace all current animations
/// on a property. The current value at the time of replacement
/// will be passed into the first new animation as the
/// defaultOriginValue parameter to allow for smooth handoff.
///
SnapshotAndReplace,
///
/// New animations will compose with the current animations. The new
/// animations will be added after the current animations in the
/// composition chain.
///
Compose
}
internal static class HandoffBehaviorEnum
{
// FxCop doesn't like people using Enum.IsDefined for enum validation
// http://fxcop/CostlyCallAlternatives/EnumIsDefined.html
//
// We have this to have the validation code alongside the enum
// definition. (Rather than spread throughtout the codebase causing
// maintenance headaches in the future.)
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static bool IsDefined( HandoffBehavior handoffBehavior )
{
if( handoffBehavior < HandoffBehavior.SnapshotAndReplace ||
handoffBehavior > HandoffBehavior.Compose )
{
return false;
}
else
{
return true;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
// HandoffBehavior.cs
using MS.Internal.PresentationCore; // FriendAccessAllowed
namespace System.Windows.Media.Animation
{
///
/// Used to specify how new animations will interact with any current
/// animations already applied to a property.
///
public enum HandoffBehavior
{
///
/// New animations will completely replace all current animations
/// on a property. The current value at the time of replacement
/// will be passed into the first new animation as the
/// defaultOriginValue parameter to allow for smooth handoff.
///
SnapshotAndReplace,
///
/// New animations will compose with the current animations. The new
/// animations will be added after the current animations in the
/// composition chain.
///
Compose
}
internal static class HandoffBehaviorEnum
{
// FxCop doesn't like people using Enum.IsDefined for enum validation
// http://fxcop/CostlyCallAlternatives/EnumIsDefined.html
//
// We have this to have the validation code alongside the enum
// definition. (Rather than spread throughtout the codebase causing
// maintenance headaches in the future.)
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static bool IsDefined( HandoffBehavior handoffBehavior )
{
if( handoffBehavior < HandoffBehavior.SnapshotAndReplace ||
handoffBehavior > HandoffBehavior.Compose )
{
return false;
}
else
{
return true;
}
}
}
}
// 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
- MemberCollection.cs
- HttpCapabilitiesSectionHandler.cs
- SerialReceived.cs
- Int64Storage.cs
- SynchronizedCollection.cs
- XmlArrayItemAttributes.cs
- StyleSelector.cs
- SqlResolver.cs
- _AcceptOverlappedAsyncResult.cs
- CompilerParameters.cs
- AggregateNode.cs
- Utils.cs
- ProviderUtil.cs
- EventLogPermissionEntry.cs
- SQLMoney.cs
- InputMethod.cs
- RectAnimation.cs
- FixedSOMSemanticBox.cs
- IgnoreFlushAndCloseStream.cs
- SerialPinChanges.cs
- ChameleonKey.cs
- CompressEmulationStream.cs
- Oid.cs
- ParameterModifier.cs
- Int16Converter.cs
- SweepDirectionValidation.cs
- KoreanCalendar.cs
- CollectionBase.cs
- NamespaceListProperty.cs
- VSDExceptions.cs
- QueryExecutionOption.cs
- SatelliteContractVersionAttribute.cs
- HttpApplicationFactory.cs
- ColumnWidthChangedEvent.cs
- ValidatedControlConverter.cs
- XmlFormatReaderGenerator.cs
- EngineSite.cs
- TreeNodeStyle.cs
- BasicViewGenerator.cs
- UniqueID.cs
- HtmlControlPersistable.cs
- WMIInterop.cs
- HttpModuleCollection.cs
- SimpleHandlerBuildProvider.cs
- SocketPermission.cs
- TempFiles.cs
- DbDeleteCommandTree.cs
- ChannelServices.cs
- infer.cs
- ToolBar.cs
- WorkerRequest.cs
- WindowsBrush.cs
- LookupBindingPropertiesAttribute.cs
- Calendar.cs
- HwndSubclass.cs
- X509ChainPolicy.cs
- SimpleWorkerRequest.cs
- InteropBitmapSource.cs
- IsolatedStorageException.cs
- ThousandthOfEmRealDoubles.cs
- ToolStripItemClickedEventArgs.cs
- TypeExtensionConverter.cs
- SqlVisitor.cs
- UrlRoutingHandler.cs
- SimplePropertyEntry.cs
- GcSettings.cs
- CodeCommentStatement.cs
- DocumentReferenceCollection.cs
- PackagingUtilities.cs
- JournalEntryStack.cs
- SspiSecurityTokenProvider.cs
- HitTestDrawingContextWalker.cs
- XmlSerializableReader.cs
- DesignTimeParseData.cs
- TextRange.cs
- UriTemplatePathSegment.cs
- WebEventCodes.cs
- OutputScopeManager.cs
- XmlSiteMapProvider.cs
- XmlSchemaComplexContentExtension.cs
- RenamedEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- FactoryId.cs
- DataSourceCacheDurationConverter.cs
- BaseTypeViewSchema.cs
- RegexReplacement.cs
- SystemIPInterfaceStatistics.cs
- RelationshipSet.cs
- SqlReorderer.cs
- Empty.cs
- Vector3D.cs
- _SslSessionsCache.cs
- TargetFrameworkAttribute.cs
- xml.cs
- DesignObjectWrapper.cs
- GraphicsContainer.cs
- smtpconnection.cs
- WebPartTransformerCollection.cs
- OracleInfoMessageEventArgs.cs
- Tuple.cs