Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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 // [....]/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
- NGCPageContentCollectionSerializerAsync.cs
- DecoderNLS.cs
- NativeMethods.cs
- TripleDESCryptoServiceProvider.cs
- ComboBoxItem.cs
- HttpPostProtocolReflector.cs
- MarkupExtensionReturnTypeAttribute.cs
- ConfigurationPropertyCollection.cs
- TableLayoutRowStyleCollection.cs
- SectionInput.cs
- TextBox.cs
- EngineSiteSapi.cs
- OdbcReferenceCollection.cs
- ChangesetResponse.cs
- RepeaterItemCollection.cs
- CqlWriter.cs
- CollectionContainer.cs
- XmlUnspecifiedAttribute.cs
- RedirectionProxy.cs
- PrintDialog.cs
- FilterQueryOptionExpression.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- ProfileParameter.cs
- DbProviderFactoriesConfigurationHandler.cs
- Reference.cs
- RangeBaseAutomationPeer.cs
- entityreference_tresulttype.cs
- EventWaitHandle.cs
- Span.cs
- ParallelActivityDesigner.cs
- CallSite.cs
- TPLETWProvider.cs
- regiisutil.cs
- handlecollector.cs
- GenericsInstances.cs
- assemblycache.cs
- TypeKeyValue.cs
- Transform.cs
- Pen.cs
- FullTextBreakpoint.cs
- EventDescriptor.cs
- SymbolTable.cs
- EventLogPermission.cs
- InkCanvasSelection.cs
- SHA384Managed.cs
- AuthorizationPolicyTypeElement.cs
- ArrayTypeMismatchException.cs
- StatusBarDesigner.cs
- SqlDataRecord.cs
- MemberAccessException.cs
- DataBindingExpressionBuilder.cs
- NativeMethodsCLR.cs
- Misc.cs
- GatewayDefinition.cs
- SystemGatewayIPAddressInformation.cs
- LinearKeyFrames.cs
- TextRangeBase.cs
- WorkflowInstanceQuery.cs
- GridViewHeaderRowPresenter.cs
- WebHttpBindingElement.cs
- Transform.cs
- Path.cs
- ConcurrentStack.cs
- SplayTreeNode.cs
- ReadOnlyPropertyMetadata.cs
- StructuredType.cs
- StylusPointProperty.cs
- SecurityChannel.cs
- userdatakeys.cs
- XPathBuilder.cs
- VSDExceptions.cs
- PriorityBinding.cs
- CodeDirectoryCompiler.cs
- HTMLTagNameToTypeMapper.cs
- FileDialog_Vista_Interop.cs
- AtomPub10CategoriesDocumentFormatter.cs
- TypeToArgumentTypeConverter.cs
- SchemaType.cs
- InteropAutomationProvider.cs
- PropertyPathConverter.cs
- DtrList.cs
- MethodToken.cs
- MasterPage.cs
- DragDrop.cs
- XmlILModule.cs
- CqlIdentifiers.cs
- SoapAttributes.cs
- PackageRelationshipSelector.cs
- XmlSchemaInferenceException.cs
- ProcessThreadCollection.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ClassDataContract.cs
- coordinatorfactory.cs
- Matrix.cs
- HttpRequest.cs
- FixedSchema.cs
- TraceXPathNavigator.cs
- StylesEditorDialog.cs
- xmlglyphRunInfo.cs
- SerializationObjectManager.cs