Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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 // [....]/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
- PageContentAsyncResult.cs
- ContextMarshalException.cs
- ReadOnlyDictionary.cs
- SqlVersion.cs
- ActiveXSite.cs
- RepeatBehavior.cs
- ObjectFullSpanRewriter.cs
- BasicCommandTreeVisitor.cs
- DataReceivedEventArgs.cs
- ManipulationPivot.cs
- RelationshipConstraintValidator.cs
- SecureUICommand.cs
- ClientData.cs
- SqlProcedureAttribute.cs
- PrintController.cs
- X509LogoTypeExtension.cs
- SectionUpdates.cs
- DataGridViewCellParsingEventArgs.cs
- GridViewCancelEditEventArgs.cs
- HebrewCalendar.cs
- ToolboxItemAttribute.cs
- MoveSizeWinEventHandler.cs
- XsdValidatingReader.cs
- DataGridViewCellStyleConverter.cs
- BookmarkCallbackWrapper.cs
- NodeFunctions.cs
- VariableQuery.cs
- SystemBrushes.cs
- AsyncOperation.cs
- BinaryCommonClasses.cs
- ResourceReferenceExpression.cs
- TreeViewDataItemAutomationPeer.cs
- ManualResetEvent.cs
- XPathChildIterator.cs
- RolePrincipal.cs
- HtmlAnchor.cs
- SolidBrush.cs
- MissingManifestResourceException.cs
- DBBindings.cs
- NetworkInformationException.cs
- XmlBoundElement.cs
- ParserOptions.cs
- AccessDataSourceWizardForm.cs
- Application.cs
- SamlSubject.cs
- WindowVisualStateTracker.cs
- SmiEventSink.cs
- QueryableDataSourceEditData.cs
- Contracts.cs
- SingleAnimation.cs
- JsonXmlDataContract.cs
- XmlUrlEditor.cs
- WebCategoryAttribute.cs
- SecurityRuntime.cs
- EditorZone.cs
- VirtualPathUtility.cs
- DecimalStorage.cs
- EditingScopeUndoUnit.cs
- FixedPosition.cs
- SizeAnimationClockResource.cs
- DataGridViewCellEventArgs.cs
- AssemblyBuilderData.cs
- KeyValuePair.cs
- AliasedSlot.cs
- FilterEventArgs.cs
- DoubleCollectionValueSerializer.cs
- AttributeEmitter.cs
- GridPattern.cs
- BooleanAnimationBase.cs
- RepeatButton.cs
- UnknownWrapper.cs
- Array.cs
- Error.cs
- DataContractJsonSerializer.cs
- ControlBuilder.cs
- MetaColumn.cs
- CompoundFileStreamReference.cs
- SiteMapDesignerDataSourceView.cs
- SmiEventSink_Default.cs
- SelfIssuedSamlTokenFactory.cs
- DataIdProcessor.cs
- RbTree.cs
- SecurityChannelFaultConverter.cs
- ColumnClickEvent.cs
- ObjRef.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- DateTimeParse.cs
- ActiveXHost.cs
- HealthMonitoringSectionHelper.cs
- OutputCacheModule.cs
- MiniModule.cs
- UnhandledExceptionEventArgs.cs
- PingReply.cs
- _LazyAsyncResult.cs
- NameScope.cs
- GCHandleCookieTable.cs
- BinaryFormatter.cs
- MethodCallTranslator.cs
- ClientApiGenerator.cs
- XPathAncestorIterator.cs