Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- StandardToolWindows.cs
- MetabaseReader.cs
- HelpFileFileNameEditor.cs
- FuncCompletionCallbackWrapper.cs
- TransportConfigurationTypeElementCollection.cs
- OutputCacheSettings.cs
- RecommendedAsConfigurableAttribute.cs
- DependencyProperty.cs
- ObjectHelper.cs
- DnsPermission.cs
- TextDecoration.cs
- InkCanvasSelectionAdorner.cs
- SelectionPattern.cs
- Quad.cs
- AuthenticationModuleElementCollection.cs
- EntitySqlException.cs
- GlobalizationAssembly.cs
- ListItemConverter.cs
- RequestDescription.cs
- PasswordBox.cs
- SocketAddress.cs
- ProgressBar.cs
- Wrapper.cs
- XmlTextEncoder.cs
- WrappedDispatcherException.cs
- XmlAttributeProperties.cs
- DocumentReferenceCollection.cs
- Object.cs
- ApplicationProxyInternal.cs
- LabelAutomationPeer.cs
- DataPagerFieldItem.cs
- SqlFileStream.cs
- WindowsTitleBar.cs
- MobileTextWriter.cs
- RoleManagerModule.cs
- IntSecurity.cs
- SqlDataReaderSmi.cs
- XmlSerializationReader.cs
- Window.cs
- ZoomingMessageFilter.cs
- _WinHttpWebProxyDataBuilder.cs
- HashStream.cs
- MultitargetUtil.cs
- DeviceContexts.cs
- DataRecordObjectView.cs
- GridViewCancelEditEventArgs.cs
- Events.cs
- ClientSideQueueItem.cs
- GridViewUpdatedEventArgs.cs
- EmbeddedObject.cs
- LiteralTextParser.cs
- FrameworkContentElement.cs
- FileVersionInfo.cs
- XmlImplementation.cs
- dtdvalidator.cs
- ObjectDataSourceSelectingEventArgs.cs
- SafeSecurityHelper.cs
- AnonymousIdentificationSection.cs
- RadialGradientBrush.cs
- PeerNameResolver.cs
- ContentAlignmentEditor.cs
- CommunicationObjectAbortedException.cs
- ToolStripPanelCell.cs
- SHA1CryptoServiceProvider.cs
- GetPageNumberCompletedEventArgs.cs
- WeakReadOnlyCollection.cs
- ColorConverter.cs
- DoubleAnimationUsingPath.cs
- ImageSourceConverter.cs
- UnsafeNativeMethods.cs
- Mappings.cs
- InvalidEnumArgumentException.cs
- RelationshipEndCollection.cs
- TableItemStyle.cs
- WindowsIPAddress.cs
- TreeWalkHelper.cs
- ProtocolsSection.cs
- DocumentSchemaValidator.cs
- ClrProviderManifest.cs
- SqlConnectionStringBuilder.cs
- Profiler.cs
- MarkupProperty.cs
- CalendarDateRange.cs
- Fonts.cs
- MarkupExtensionParser.cs
- RandomDelaySendsAsyncResult.cs
- SpecialNameAttribute.cs
- BoundField.cs
- lengthconverter.cs
- UIElementAutomationPeer.cs
- XsdBuildProvider.cs
- ProfileSection.cs
- IndexedSelectQueryOperator.cs
- Error.cs
- CompleteWizardStep.cs
- ObjectStateManager.cs
- PasswordRecoveryAutoFormat.cs
- sqlnorm.cs
- ActivityLocationReferenceEnvironment.cs
- CodeTypeDeclarationCollection.cs