Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- TrustManagerMoreInformation.cs
- ManagedFilter.cs
- IteratorFilter.cs
- MetabaseReader.cs
- XPathNavigatorReader.cs
- ArcSegment.cs
- UnSafeCharBuffer.cs
- PocoEntityKeyStrategy.cs
- ExtractedStateEntry.cs
- SystemGatewayIPAddressInformation.cs
- LineVisual.cs
- WindowsUpDown.cs
- LightweightCodeGenerator.cs
- TimeoutException.cs
- BitmapMetadata.cs
- HttpRuntime.cs
- AspProxy.cs
- MatrixUtil.cs
- EnterpriseServicesHelper.cs
- FixUp.cs
- StylusPoint.cs
- DesignerActionService.cs
- WebConfigurationHostFileChange.cs
- ImageCollectionCodeDomSerializer.cs
- SqlDataSourceFilteringEventArgs.cs
- ResolveMatchesMessage11.cs
- MgmtConfigurationRecord.cs
- HeaderedContentControl.cs
- _NestedSingleAsyncResult.cs
- SecUtil.cs
- SQLCharsStorage.cs
- AesCryptoServiceProvider.cs
- RC2CryptoServiceProvider.cs
- DocumentNUp.cs
- NonBatchDirectoryCompiler.cs
- IndependentAnimationStorage.cs
- PeerDuplexChannelListener.cs
- MenuItemBinding.cs
- XamlRtfConverter.cs
- safelink.cs
- TableStyle.cs
- TextRangeBase.cs
- CodeConditionStatement.cs
- XmlWrappingReader.cs
- xmlglyphRunInfo.cs
- BindingWorker.cs
- ContextQuery.cs
- MeshGeometry3D.cs
- FixedSOMGroup.cs
- WebPartMinimizeVerb.cs
- ProtectedProviderSettings.cs
- DescriptionAttribute.cs
- SmtpNegotiateAuthenticationModule.cs
- ErrorProvider.cs
- DesignTimeValidationFeature.cs
- StyleXamlParser.cs
- ReferencedCollectionType.cs
- XPathNodeList.cs
- ActivityStatusChangeEventArgs.cs
- UpdateProgress.cs
- UrlUtility.cs
- MeshGeometry3D.cs
- TabControlAutomationPeer.cs
- ConfigViewGenerator.cs
- DetectRunnableInstancesTask.cs
- PageAsyncTaskManager.cs
- XmlSchemaSimpleTypeUnion.cs
- LinkArea.cs
- UnsafeNativeMethods.cs
- SamlNameIdentifierClaimResource.cs
- ToolStripHighContrastRenderer.cs
- X509Certificate2Collection.cs
- CodeExpressionStatement.cs
- EventLogTraceListener.cs
- ObjectIDGenerator.cs
- XmlSchemaGroup.cs
- ServiceParser.cs
- PaintValueEventArgs.cs
- SortedList.cs
- CatalogPartChrome.cs
- PreviousTrackingServiceAttribute.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- ObjectContextServiceProvider.cs
- RenamedEventArgs.cs
- SqlServices.cs
- InfoCard.cs
- XpsS0ValidatingLoader.cs
- RadioButtonPopupAdapter.cs
- ProgressiveCrcCalculatingStream.cs
- WebEvents.cs
- ActivityWithResultValueSerializer.cs
- DefaultEventAttribute.cs
- DesignerValidationSummaryAdapter.cs
- MetadataItemSerializer.cs
- OperatorExpressions.cs
- WebPartConnectionsConfigureVerb.cs
- GetImportFileNameRequest.cs
- XmlQueryOutput.cs
- TimeSpanValidatorAttribute.cs
- InertiaRotationBehavior.cs