Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Animation / HandoffBehavior.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartCatalogAddVerb.cs
- DbSetClause.cs
- Point4D.cs
- AtomMaterializerLog.cs
- DataGridViewTextBoxCell.cs
- SqlMethodAttribute.cs
- EmptyEnumerator.cs
- BamlRecordHelper.cs
- StateManagedCollection.cs
- XmlArrayItemAttribute.cs
- DiscoveryDocumentSearchPattern.cs
- DragDrop.cs
- StrongName.cs
- HtmlSelect.cs
- XsltContext.cs
- CultureMapper.cs
- WorkflowTimerService.cs
- MimeXmlReflector.cs
- OdbcConnectionString.cs
- EUCJPEncoding.cs
- TypeHelper.cs
- Funcletizer.cs
- ManagedWndProcTracker.cs
- DataRelationCollection.cs
- DataListItemEventArgs.cs
- Part.cs
- TextModifierScope.cs
- DisableDpiAwarenessAttribute.cs
- TextContainerHelper.cs
- BinaryObjectInfo.cs
- UIElementPropertyUndoUnit.cs
- VirtualizingPanel.cs
- CodeIterationStatement.cs
- UIElementParagraph.cs
- OrderedDictionary.cs
- DataServiceCollectionOfT.cs
- TerminatingOperationBehavior.cs
- WorkerRequest.cs
- XmlNamespaceMapping.cs
- Int64AnimationBase.cs
- DataKeyCollection.cs
- BooleanAnimationBase.cs
- RuntimeEnvironment.cs
- WebPartUtil.cs
- TypeConverters.cs
- WindowsFormsSectionHandler.cs
- ProfileModule.cs
- GeneralTransformGroup.cs
- PersonalizationProviderCollection.cs
- SizeAnimationClockResource.cs
- Debug.cs
- LineSegment.cs
- PageEventArgs.cs
- BrowserDefinitionCollection.cs
- ElapsedEventArgs.cs
- Classification.cs
- NamespaceMapping.cs
- XDeferredAxisSource.cs
- PanningMessageFilter.cs
- Span.cs
- PenThreadPool.cs
- OrderedDictionary.cs
- ObservableCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- LingerOption.cs
- PauseStoryboard.cs
- ConstraintEnumerator.cs
- ValueTypeFixupInfo.cs
- ToolStripScrollButton.cs
- DataReaderContainer.cs
- LinqDataSourceSelectEventArgs.cs
- HostedNamedPipeTransportManager.cs
- KnownTypes.cs
- TransformerConfigurationWizardBase.cs
- WsdlBuildProvider.cs
- Missing.cs
- bidPrivateBase.cs
- SamlAction.cs
- CategoryState.cs
- ExtensionFile.cs
- BitmapEffectrendercontext.cs
- CodeMethodReturnStatement.cs
- SmiEventStream.cs
- SimpleBitVector32.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlAttributeAttribute.cs
- CompilerInfo.cs
- RangeValuePatternIdentifiers.cs
- xamlnodes.cs
- DiscoveryClientDocuments.cs
- StoreUtilities.cs
- FtpRequestCacheValidator.cs
- RadioButtonPopupAdapter.cs
- CodeSnippetTypeMember.cs
- lengthconverter.cs
- NotifyIcon.cs
- Sql8ExpressionRewriter.cs
- WebResourceUtil.cs
- SequenceDesigner.cs
- XmlAutoDetectWriter.cs