Code:
/ 4.0 / 4.0 / 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. // 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
- FunctionCommandText.cs
- DesignerVerb.cs
- DataServiceQueryProvider.cs
- CalendarButton.cs
- UInt32.cs
- ReflectPropertyDescriptor.cs
- BitArray.cs
- DataListCommandEventArgs.cs
- MailAddressCollection.cs
- ScriptMethodAttribute.cs
- ProfilePropertySettings.cs
- RegexGroup.cs
- ResourceSetExpression.cs
- TextElementAutomationPeer.cs
- XPathSelfQuery.cs
- SynchronizationValidator.cs
- WebServiceEndpoint.cs
- WindowsTokenRoleProvider.cs
- COM2ExtendedUITypeEditor.cs
- RegularExpressionValidator.cs
- TextShapeableCharacters.cs
- basecomparevalidator.cs
- SerialPort.cs
- VerificationAttribute.cs
- DataTablePropertyDescriptor.cs
- HyperLinkStyle.cs
- UnsignedPublishLicense.cs
- RadialGradientBrush.cs
- PropertyGridEditorPart.cs
- DataMemberListEditor.cs
- processwaithandle.cs
- MapPathBasedVirtualPathProvider.cs
- SuppressMessageAttribute.cs
- DataTable.cs
- objectquery_tresulttype.cs
- BindableAttribute.cs
- COM2IPerPropertyBrowsingHandler.cs
- OrderedDictionary.cs
- SmtpAuthenticationManager.cs
- ObjectQueryState.cs
- PtsHost.cs
- NetMsmqBindingElement.cs
- HttpsTransportBindingElement.cs
- LocatorPartList.cs
- DbConnectionOptions.cs
- Point3DAnimation.cs
- xmlfixedPageInfo.cs
- XmlSchemaComplexContent.cs
- LinearGradientBrush.cs
- LayoutUtils.cs
- RelationshipEndMember.cs
- ResourcePool.cs
- EntityCommandCompilationException.cs
- AddInControllerImpl.cs
- DbDataRecord.cs
- PerformanceCounterPermission.cs
- XmlElementAttributes.cs
- TraceHandlerErrorFormatter.cs
- DesignerRegionMouseEventArgs.cs
- XmlILIndex.cs
- PointLight.cs
- AspNetCacheProfileAttribute.cs
- SystemNetworkInterface.cs
- NativeMethods.cs
- TextTreeTextNode.cs
- EntityCommandExecutionException.cs
- TableLayoutSettingsTypeConverter.cs
- ExternalFile.cs
- Viewport3DAutomationPeer.cs
- SystemTcpConnection.cs
- DecimalAverageAggregationOperator.cs
- Automation.cs
- AnnotationHelper.cs
- TextAdaptor.cs
- Border.cs
- ObjectCacheHost.cs
- RepeaterCommandEventArgs.cs
- ComponentFactoryHelpers.cs
- DesignTimeTemplateParser.cs
- BoolExpr.cs
- PassportIdentity.cs
- MobileListItem.cs
- SocketAddress.cs
- BitArray.cs
- RadialGradientBrush.cs
- UpdateCommand.cs
- SEHException.cs
- DLinqTableProvider.cs
- Permission.cs
- OleDbPermission.cs
- SettingsSection.cs
- SequentialOutput.cs
- ExpressionEditorAttribute.cs
- Timer.cs
- XmlSignatureProperties.cs
- EntityChangedParams.cs
- MonthCalendar.cs
- CorrelationQueryBehavior.cs
- AdPostCacheSubstitution.cs
- SectionRecord.cs