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
- CharEnumerator.cs
- LeftCellWrapper.cs
- GridSplitterAutomationPeer.cs
- PolyLineSegmentFigureLogic.cs
- XmlCustomFormatter.cs
- EventProvider.cs
- FileSecurity.cs
- XhtmlBasicCalendarAdapter.cs
- ReturnType.cs
- ViewBase.cs
- ISessionStateStore.cs
- StickyNoteContentControl.cs
- DataGridViewHitTestInfo.cs
- BinaryFormatterSinks.cs
- _UriSyntax.cs
- CmsInterop.cs
- versioninfo.cs
- Inflater.cs
- CodeCompileUnit.cs
- ObjectStateFormatter.cs
- RepeaterDesigner.cs
- BaseCodePageEncoding.cs
- SecurityDescriptor.cs
- Separator.cs
- EntityModelSchemaGenerator.cs
- TemplateLookupAction.cs
- DependencyPropertyKey.cs
- DriveInfo.cs
- SafeArrayTypeMismatchException.cs
- ObjectPropertyMapping.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- WebConfigurationManager.cs
- UIAgentMonitor.cs
- TypeExtension.cs
- GeneratedContractType.cs
- SharedDp.cs
- Schema.cs
- Condition.cs
- BlurBitmapEffect.cs
- FreezableOperations.cs
- SoapServerMethod.cs
- TimersDescriptionAttribute.cs
- XmlIlGenerator.cs
- XmlReader.cs
- InputBuffer.cs
- UidPropertyAttribute.cs
- SectionXmlInfo.cs
- ServicePointManager.cs
- InputBinding.cs
- NameScopePropertyAttribute.cs
- TextParagraph.cs
- QueryOperationResponseOfT.cs
- LocalizedNameDescriptionPair.cs
- Crc32.cs
- TreeNodeStyleCollection.cs
- BoundPropertyEntry.cs
- AssociatedControlConverter.cs
- HttpDebugHandler.cs
- ValueSerializer.cs
- LoginCancelEventArgs.cs
- ColorTransformHelper.cs
- IChannel.cs
- Policy.cs
- WebBrowserNavigatingEventHandler.cs
- CaseExpr.cs
- ChtmlLinkAdapter.cs
- PixelShader.cs
- TypeToken.cs
- BulletChrome.cs
- AutomationIdentifier.cs
- DataError.cs
- XmlToDatasetMap.cs
- ArrayExtension.cs
- MethodExpression.cs
- SafeNativeMethodsCLR.cs
- HierarchicalDataBoundControl.cs
- WebDescriptionAttribute.cs
- SrgsDocument.cs
- ThreadStateException.cs
- DateTimeFormatInfo.cs
- TextModifier.cs
- MessageEventSubscriptionService.cs
- RtfFormatStack.cs
- MILUtilities.cs
- Compiler.cs
- BitmapPalette.cs
- PenLineCapValidation.cs
- Material.cs
- TemplateColumn.cs
- ObjectCloneHelper.cs
- DependencyPropertyKind.cs
- CompareValidator.cs
- DataGridViewElement.cs
- Matrix3DValueSerializer.cs
- IApplicationTrustManager.cs
- DbProviderManifest.cs
- MD5.cs
- UnsafeNativeMethods.cs
- SafeTokenHandle.cs
- PageClientProxyGenerator.cs