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
- ReadWriteControlDesigner.cs
- EncryptedData.cs
- XmlTextReaderImpl.cs
- DependencyPropertyKey.cs
- VectorAnimationUsingKeyFrames.cs
- Int32Converter.cs
- ValueTable.cs
- Rectangle.cs
- SoapTypeAttribute.cs
- GiveFeedbackEvent.cs
- ObjectListCommandsPage.cs
- NavigationFailedEventArgs.cs
- FragmentNavigationEventArgs.cs
- SmiEventSink_DeferedProcessing.cs
- XmlNodeList.cs
- HttpModuleAction.cs
- LayoutEditorPart.cs
- CoreSwitches.cs
- IFormattable.cs
- CursorInteropHelper.cs
- StylusPlugin.cs
- OdbcConnectionOpen.cs
- EntityDataSourceValidationException.cs
- CommandTreeTypeHelper.cs
- SharedUtils.cs
- FillErrorEventArgs.cs
- PropertyContainer.cs
- MatrixValueSerializer.cs
- SqlFactory.cs
- StrongTypingException.cs
- CFStream.cs
- TaskExceptionHolder.cs
- NumericUpDownAcceleration.cs
- Int32AnimationBase.cs
- SourceItem.cs
- AccessDataSourceDesigner.cs
- RectangleConverter.cs
- DataControlFieldHeaderCell.cs
- ProgramPublisher.cs
- ServiceHostingEnvironment.cs
- TypeSystemHelpers.cs
- BooleanProjectedSlot.cs
- SupportingTokenProviderSpecification.cs
- GeometryDrawing.cs
- StrokeCollectionConverter.cs
- HtmlElementCollection.cs
- SplayTreeNode.cs
- XmlMtomWriter.cs
- HwndSourceKeyboardInputSite.cs
- SystemMulticastIPAddressInformation.cs
- CodeTypeParameter.cs
- NTAccount.cs
- HitTestFilterBehavior.cs
- AsnEncodedData.cs
- ControllableStoryboardAction.cs
- ResolvePPIDRequest.cs
- HighlightVisual.cs
- AgileSafeNativeMemoryHandle.cs
- DialogResultConverter.cs
- QueryActivatableWorkflowsCommand.cs
- PenLineJoinValidation.cs
- JavascriptCallbackBehaviorAttribute.cs
- PropertyEntry.cs
- PolyLineSegment.cs
- QilScopedVisitor.cs
- ImportOptions.cs
- DiscriminatorMap.cs
- HeaderFilter.cs
- TextComposition.cs
- XmlSchemaValidationException.cs
- PasswordPropertyTextAttribute.cs
- InputLanguageManager.cs
- PointAnimationUsingPath.cs
- FixedPosition.cs
- DataGridViewColumnDesigner.cs
- QueryException.cs
- TriggerActionCollection.cs
- XPathAxisIterator.cs
- AutoGeneratedField.cs
- UserPersonalizationStateInfo.cs
- SystemIPGlobalProperties.cs
- ObjectKeyFrameCollection.cs
- JapaneseCalendar.cs
- HtmlTableRowCollection.cs
- StringFunctions.cs
- __ComObject.cs
- HwndSourceParameters.cs
- SecondaryIndexDefinition.cs
- SecurityContext.cs
- BitmapEffectInputData.cs
- UIElementPropertyUndoUnit.cs
- Utils.cs
- XmlArrayAttribute.cs
- MessagePartSpecification.cs
- AdornerHitTestResult.cs
- ServerIdentity.cs
- SubtreeProcessor.cs
- SeparatorAutomationPeer.cs
- MemberRelationshipService.cs
- C14NUtil.cs