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
- EasingKeyFrames.cs
- CustomAttributeSerializer.cs
- WinEventQueueItem.cs
- XmlILStorageConverter.cs
- UpdateManifestForBrowserApplication.cs
- SecurityState.cs
- SystemIPInterfaceProperties.cs
- InputGestureCollection.cs
- BitmapSourceSafeMILHandle.cs
- ADRole.cs
- HttpContextWrapper.cs
- HistoryEventArgs.cs
- ExpandableObjectConverter.cs
- DrawingGroupDrawingContext.cs
- OverlappedAsyncResult.cs
- PLINQETWProvider.cs
- TextSelection.cs
- PathTooLongException.cs
- DelegateSerializationHolder.cs
- InheritanceContextChangedEventManager.cs
- ProviderMetadataCachedInformation.cs
- Int64Converter.cs
- JavaScriptString.cs
- SamlAudienceRestrictionCondition.cs
- GlyphRunDrawing.cs
- PeerTransportSecuritySettings.cs
- ConnectionManagementSection.cs
- EventLogQuery.cs
- ServiceBuildProvider.cs
- XmlBinaryReader.cs
- DataProtection.cs
- ExceptionHandlerDesigner.cs
- GeneralTransform3DTo2D.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- Vector3DAnimationBase.cs
- SiteOfOriginPart.cs
- NavigationWindow.cs
- ControlBuilderAttribute.cs
- PersistStreamTypeWrapper.cs
- HtmlDocument.cs
- DataStreamFromComStream.cs
- SynchronizationContext.cs
- SqlWriter.cs
- SerializationUtility.cs
- CodeDomDecompiler.cs
- TextEffect.cs
- TextRangeProviderWrapper.cs
- ComponentCollection.cs
- UnsafeCollabNativeMethods.cs
- BlurBitmapEffect.cs
- SqlCaseSimplifier.cs
- ReadingWritingEntityEventArgs.cs
- CustomCategoryAttribute.cs
- CategoryValueConverter.cs
- DelegatingChannelListener.cs
- CodeArgumentReferenceExpression.cs
- Empty.cs
- Compilation.cs
- ScrollChrome.cs
- RootAction.cs
- ExtendedPropertyCollection.cs
- CatalogPart.cs
- DataGridViewColumnCollection.cs
- EntityDataSourceReferenceGroup.cs
- InputMethodStateTypeInfo.cs
- MetadataItem_Static.cs
- CodeDomDesignerLoader.cs
- MappedMetaModel.cs
- DataGridViewCellCollection.cs
- Interlocked.cs
- OdbcDataReader.cs
- SrgsDocumentParser.cs
- UserControlAutomationPeer.cs
- EncoderReplacementFallback.cs
- NativeBuffer.cs
- PropertyInfoSet.cs
- DatagridviewDisplayedBandsData.cs
- WebConfigManager.cs
- HideDisabledControlAdapter.cs
- DbFunctionCommandTree.cs
- InstalledVoice.cs
- SmtpNegotiateAuthenticationModule.cs
- WebBrowser.cs
- MetaForeignKeyColumn.cs
- ObjectListGeneralPage.cs
- TypeFieldSchema.cs
- ForwardPositionQuery.cs
- JournalEntryStack.cs
- VectorCollectionValueSerializer.cs
- SqlStream.cs
- RightsManagementLicense.cs
- TempFiles.cs
- Viewport3DVisual.cs
- CellLabel.cs
- UserPreferenceChangingEventArgs.cs
- PrincipalPermission.cs
- XmlWriter.cs
- ImageButton.cs
- HttpPostedFile.cs
- Types.cs