Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / HandoffBehavior.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MultiBinding.cs
- Point3D.cs
- TrustLevelCollection.cs
- WebEvents.cs
- ReachPageContentCollectionSerializer.cs
- TimeIntervalCollection.cs
- StructuredTypeEmitter.cs
- SyndicationSerializer.cs
- DecimalAnimationUsingKeyFrames.cs
- HandleCollector.cs
- GroupByExpressionRewriter.cs
- PagesSection.cs
- _SafeNetHandles.cs
- ModelService.cs
- WindowsContainer.cs
- DataObject.cs
- LabelDesigner.cs
- GeneralTransformGroup.cs
- ExpressionBinding.cs
- ContentPresenter.cs
- OperationParameterInfoCollection.cs
- ReservationNotFoundException.cs
- PropertyInfo.cs
- Opcode.cs
- StreamMarshaler.cs
- Image.cs
- TextBoxDesigner.cs
- CallbackDebugBehavior.cs
- C14NUtil.cs
- DoubleCollectionValueSerializer.cs
- XmlObjectSerializerWriteContext.cs
- DetailsViewModeEventArgs.cs
- SchemaImporterExtension.cs
- NativeMethods.cs
- Renderer.cs
- CommandValueSerializer.cs
- GradientBrush.cs
- ProcessThreadDesigner.cs
- BamlLocalizableResource.cs
- File.cs
- SpeakCompletedEventArgs.cs
- WebServiceResponse.cs
- Types.cs
- ServiceOperationParameter.cs
- ObjectDataSourceMethodEventArgs.cs
- XmlSchema.cs
- BooleanAnimationBase.cs
- MailAddressCollection.cs
- EnvelopedPkcs7.cs
- PlacementWorkspace.cs
- CacheOutputQuery.cs
- Control.cs
- ListMarkerLine.cs
- AsyncCodeActivity.cs
- AsyncPostBackTrigger.cs
- AttachedAnnotation.cs
- XmlCharacterData.cs
- Utils.cs
- DataGridPageChangedEventArgs.cs
- RetrieveVirtualItemEventArgs.cs
- TextBoxLine.cs
- PassportAuthenticationModule.cs
- EmptyControlCollection.cs
- NTAccount.cs
- DataGridSortCommandEventArgs.cs
- AsmxEndpointPickerExtension.cs
- DisplayToken.cs
- DateTimeStorage.cs
- SerializableTypeCodeDomSerializer.cs
- TextOutput.cs
- DeferredElementTreeState.cs
- BaseServiceProvider.cs
- VectorAnimation.cs
- DragStartedEventArgs.cs
- AdPostCacheSubstitution.cs
- RepeaterItemEventArgs.cs
- CacheHelper.cs
- SafeFileMapViewHandle.cs
- DateTimeHelper.cs
- ChameleonKey.cs
- FontNamesConverter.cs
- HttpProfileGroupBase.cs
- MinimizableAttributeTypeConverter.cs
- DataGridTable.cs
- SurrogateSelector.cs
- EUCJPEncoding.cs
- DesignerTransactionCloseEvent.cs
- FontCacheUtil.cs
- DropShadowBitmapEffect.cs
- graph.cs
- Win32.cs
- XmlEncApr2001.cs
- OracleTimeSpan.cs
- GACIdentityPermission.cs
- Point4D.cs
- ComplexTypeEmitter.cs
- TypeBrowserDialog.cs
- MethodBuilder.cs
- BrushConverter.cs
- BufferAllocator.cs