Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- Stackframe.cs
- MemberInfoSerializationHolder.cs
- FunctionQuery.cs
- ActivationService.cs
- GridViewDeleteEventArgs.cs
- SqlProviderServices.cs
- ActivatableWorkflowsQueryResult.cs
- UrlAuthFailureHandler.cs
- Fonts.cs
- Sql8ExpressionRewriter.cs
- _ShellExpression.cs
- TextPattern.cs
- AttachedAnnotationChangedEventArgs.cs
- WebHeaderCollection.cs
- WindowsScrollBar.cs
- ServiceNotStartedException.cs
- ImageListStreamer.cs
- TreeIterator.cs
- _LoggingObject.cs
- EndpointDesigner.cs
- ApplicationProxyInternal.cs
- Compilation.cs
- PolicyLevel.cs
- WebHttpSecurity.cs
- CodeCommentStatement.cs
- UIElementHelper.cs
- WinFormsSpinner.cs
- CompositeScriptReference.cs
- KeyGesture.cs
- DataList.cs
- ProfileSettingsCollection.cs
- SystemException.cs
- PrePrepareMethodAttribute.cs
- FormViewInsertEventArgs.cs
- XmlSchemaAnnotation.cs
- SimpleTextLine.cs
- CreateParams.cs
- ExtensionFile.cs
- NavigationProperty.cs
- OrderablePartitioner.cs
- MaterializeFromAtom.cs
- C14NUtil.cs
- RedBlackList.cs
- RuleEngine.cs
- RowTypeElement.cs
- SafeProcessHandle.cs
- ServiceEndpointElementCollection.cs
- HuffModule.cs
- Expression.cs
- WebBrowsableAttribute.cs
- TextDecorations.cs
- OutputCacheModule.cs
- DefaultPropertyAttribute.cs
- QueryExecutionOption.cs
- EdmComplexTypeAttribute.cs
- KeyTime.cs
- WebBrowserSiteBase.cs
- XmlSchemaType.cs
- DesignerDataParameter.cs
- ProviderSettings.cs
- BaseDataBoundControl.cs
- XmlSerializerFactory.cs
- SelectionRangeConverter.cs
- Vector3dCollection.cs
- ResourcesGenerator.cs
- securestring.cs
- ControlCachePolicy.cs
- KeyValueConfigurationCollection.cs
- FormViewUpdatedEventArgs.cs
- TemplateControlParser.cs
- DecimalConverter.cs
- WebPartDisplayModeCancelEventArgs.cs
- CompensationTokenData.cs
- XmlChildEnumerator.cs
- UrlAuthFailureHandler.cs
- Missing.cs
- EntityDataSourceConfigureObjectContext.cs
- ThicknessKeyFrameCollection.cs
- XmlReader.cs
- _HeaderInfo.cs
- WebConfigurationHost.cs
- DetailsViewRowCollection.cs
- ComponentResourceKeyConverter.cs
- SqlConnectionPoolGroupProviderInfo.cs
- SelectedDatesCollection.cs
- PersonalizationDictionary.cs
- EdmMember.cs
- BindingNavigator.cs
- WindowsRichEdit.cs
- AsyncOperationManager.cs
- Html32TextWriter.cs
- ContentHostHelper.cs
- XsdDuration.cs
- WebService.cs
- FormViewActionList.cs
- WindowsPrincipal.cs
- SHA384Cng.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CompilationUnit.cs
- PageRouteHandler.cs