Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- BaseTemplateBuildProvider.cs
- TemplateControl.cs
- MessageBuilder.cs
- PeerNameRecordCollection.cs
- LoginStatusDesigner.cs
- XmlDataSource.cs
- EncoderFallback.cs
- AvTraceFormat.cs
- InvalidPropValue.cs
- TreeBuilderXamlTranslator.cs
- AdornerHitTestResult.cs
- ObjectNavigationPropertyMapping.cs
- QilParameter.cs
- DynamicUpdateCommand.cs
- XmlTextReader.cs
- MetadataSerializer.cs
- Bidi.cs
- documentsequencetextview.cs
- RoleGroupCollection.cs
- ReadWriteSpinLock.cs
- KerberosRequestorSecurityToken.cs
- TypeForwardedToAttribute.cs
- CompilationSection.cs
- MouseWheelEventArgs.cs
- MouseActionConverter.cs
- GridViewUpdateEventArgs.cs
- RemotingConfiguration.cs
- EventRoute.cs
- RadioButton.cs
- AbstractDataSvcMapFileLoader.cs
- TreeView.cs
- PagePropertiesChangingEventArgs.cs
- ResolveDuplexCD1AsyncResult.cs
- IItemContainerGenerator.cs
- CodeDefaultValueExpression.cs
- DataServices.cs
- MailWebEventProvider.cs
- EncoderParameter.cs
- ISCIIEncoding.cs
- MimeReturn.cs
- CorrelationManager.cs
- XamlBuildTaskServices.cs
- DataRowCollection.cs
- XmlSignificantWhitespace.cs
- ReachFixedDocumentSerializerAsync.cs
- ProfileSettingsCollection.cs
- XhtmlBasicTextBoxAdapter.cs
- TdsParserSessionPool.cs
- Polygon.cs
- Transform.cs
- GridViewSelectEventArgs.cs
- NetworkCredential.cs
- EntityKey.cs
- CompatibleIComparer.cs
- ColumnWidthChangingEvent.cs
- IsolatedStorageFilePermission.cs
- SerialPinChanges.cs
- AutomationPropertyInfo.cs
- mediapermission.cs
- EventRecordWrittenEventArgs.cs
- XmlSchemaGroupRef.cs
- DesignerActionListCollection.cs
- SelectionEditingBehavior.cs
- FixedBufferAttribute.cs
- NotSupportedException.cs
- X509CertificateValidationMode.cs
- ToolStripPanelSelectionBehavior.cs
- IResourceProvider.cs
- ContextDataSource.cs
- SemaphoreSecurity.cs
- Geometry3D.cs
- OleDbPermission.cs
- X509UI.cs
- AuthorizationContext.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- ISFClipboardData.cs
- MatrixIndependentAnimationStorage.cs
- DataRowComparer.cs
- TemplatedWizardStep.cs
- ModelTreeEnumerator.cs
- TraceContext.cs
- HttpAsyncResult.cs
- EnglishPluralizationService.cs
- WebResponse.cs
- sqlser.cs
- RecognizerInfo.cs
- SecurityBindingElementImporter.cs
- AudioBase.cs
- NotifyParentPropertyAttribute.cs
- RichTextBoxAutomationPeer.cs
- PersonalizationProviderCollection.cs
- ListMarkerSourceInfo.cs
- RadioButtonDesigner.cs
- _ListenerRequestStream.cs
- Util.cs
- AmbientLight.cs
- DataGridCell.cs
- SocketAddress.cs
- StateMachineSubscription.cs
- PagesChangedEventArgs.cs