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
- FunctionNode.cs
- ArithmeticException.cs
- EventsTab.cs
- DataControlCommands.cs
- TemplateApplicationHelper.cs
- WindowsFormsEditorServiceHelper.cs
- CompoundFileIOPermission.cs
- UshortList2.cs
- MultiDataTrigger.cs
- ColumnTypeConverter.cs
- TemplateComponentConnector.cs
- MdImport.cs
- MediaTimeline.cs
- _IPv4Address.cs
- SimpleParser.cs
- BufferModeSettings.cs
- ScriptControlDescriptor.cs
- SqlUdtInfo.cs
- ReadOnlyHierarchicalDataSource.cs
- CmsUtils.cs
- SmiMetaData.cs
- HttpResponseHeader.cs
- DocComment.cs
- CompModSwitches.cs
- PresentationTraceSources.cs
- XmlEnumAttribute.cs
- SizeConverter.cs
- DependencySource.cs
- DbConnectionPoolIdentity.cs
- DaylightTime.cs
- GenericTextProperties.cs
- UriTemplateEquivalenceComparer.cs
- DATA_BLOB.cs
- MsmqIntegrationBindingElement.cs
- PropertyConverter.cs
- MimeParameter.cs
- PolicyManager.cs
- CannotUnloadAppDomainException.cs
- UseLicense.cs
- WebReferencesBuildProvider.cs
- Vector3DCollectionValueSerializer.cs
- ShapingEngine.cs
- DesignRelationCollection.cs
- EntityConnectionStringBuilder.cs
- PropertyManager.cs
- HtmlContainerControl.cs
- NativeCompoundFileAPIs.cs
- WS2007HttpBindingElement.cs
- BuildManager.cs
- XmlAnyElementAttributes.cs
- HtmlTextArea.cs
- ListViewCancelEventArgs.cs
- PipelineComponent.cs
- SqlCommand.cs
- EnumerableCollectionView.cs
- PropertyGridView.cs
- MergeEnumerator.cs
- RepeaterItemCollection.cs
- SiteMapSection.cs
- DesignerSerializationVisibilityAttribute.cs
- CustomErrorsSectionWrapper.cs
- BamlTreeMap.cs
- PolicyStatement.cs
- DirectionalLight.cs
- Number.cs
- TextParentUndoUnit.cs
- SoapSchemaImporter.cs
- UniqueIdentifierService.cs
- Matrix3D.cs
- HtmlInputImage.cs
- DrawListViewItemEventArgs.cs
- SiteMap.cs
- HiddenFieldPageStatePersister.cs
- LineGeometry.cs
- PageCache.cs
- VolatileEnlistmentState.cs
- ElementAction.cs
- ZipIOExtraField.cs
- WebPartTransformerAttribute.cs
- SqlInfoMessageEvent.cs
- DataBindingExpressionBuilder.cs
- DbProviderManifest.cs
- XmlSchemaException.cs
- xsdvalidator.cs
- UnhandledExceptionEventArgs.cs
- KeyValuePairs.cs
- AgileSafeNativeMemoryHandle.cs
- Highlights.cs
- fixedPageContentExtractor.cs
- UnsafeNativeMethods.cs
- TypeKeyValue.cs
- ElementNotAvailableException.cs
- DiscardableAttribute.cs
- NavigationExpr.cs
- InstanceDescriptor.cs
- FormatConvertedBitmap.cs
- DbConnectionHelper.cs
- OperatorExpressions.cs
- COMException.cs
- ComponentChangingEvent.cs