Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CustomValidator.cs
- SerializationEventsCache.cs
- DateTime.cs
- FormCollection.cs
- ScrollChrome.cs
- WebPart.cs
- Label.cs
- TransformPatternIdentifiers.cs
- basevalidator.cs
- AssociationSetEnd.cs
- TreeViewCancelEvent.cs
- SByteConverter.cs
- NativeMethods.cs
- RepeatButton.cs
- AuthStoreRoleProvider.cs
- LocalIdCollection.cs
- LinqDataSource.cs
- StylusEditingBehavior.cs
- StringAnimationBase.cs
- PageParser.cs
- TreeBuilderBamlTranslator.cs
- WaitForChangedResult.cs
- HostedElements.cs
- XmlObjectSerializerContext.cs
- RenderTargetBitmap.cs
- XomlCompiler.cs
- WorkflowServiceOperationListItem.cs
- Viewport2DVisual3D.cs
- AppDomainUnloadedException.cs
- ManipulationStartingEventArgs.cs
- Size3D.cs
- TextWriterTraceListener.cs
- RichTextBox.cs
- OneOfConst.cs
- TailCallAnalyzer.cs
- EncryptedPackage.cs
- ResourceDescriptionAttribute.cs
- _ContextAwareResult.cs
- EditorZone.cs
- TreeNodeMouseHoverEvent.cs
- ChannelToken.cs
- CannotUnloadAppDomainException.cs
- SystemEvents.cs
- TextEncodedRawTextWriter.cs
- Sentence.cs
- WindowsProgressbar.cs
- ToolStripOverflowButton.cs
- ResourceAssociationType.cs
- ServicePointManager.cs
- UdpDiscoveryEndpoint.cs
- PointF.cs
- CodeTypeOfExpression.cs
- Shape.cs
- CngProperty.cs
- AdRotator.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- CodeGotoStatement.cs
- VirtualPathExtension.cs
- XPathSelfQuery.cs
- PageCodeDomTreeGenerator.cs
- TextBoxLine.cs
- SmiRequestExecutor.cs
- DataAdapter.cs
- FusionWrap.cs
- DataGridViewButtonCell.cs
- TextElementEditingBehaviorAttribute.cs
- ExtenderProvidedPropertyAttribute.cs
- TransactionFilter.cs
- IChannel.cs
- XamlTemplateSerializer.cs
- WindowsTokenRoleProvider.cs
- WSSecurityJan2004.cs
- CompilationLock.cs
- ScopedKnownTypes.cs
- Clause.cs
- AsyncSerializedWorker.cs
- glyphs.cs
- LifetimeServices.cs
- QuaternionRotation3D.cs
- arabicshape.cs
- TypeDescriptionProvider.cs
- ProjectionNode.cs
- SettingsPropertyIsReadOnlyException.cs
- Point3DKeyFrameCollection.cs
- WebUtil.cs
- ChannelCacheSettings.cs
- DrawingAttributeSerializer.cs
- DeviceSpecificDialogCachedState.cs
- RequestQueryParser.cs
- DataStorage.cs
- TextStore.cs
- XmlEventCache.cs
- TreeViewAutomationPeer.cs
- MessageHeaders.cs
- InternalRelationshipCollection.cs
- ResXResourceSet.cs
- EntityDesignerUtils.cs
- cookieexception.cs
- HelpKeywordAttribute.cs
- SafeBitVector32.cs