Code:
/ 4.0 / 4.0 / 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. // 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
- TabletCollection.cs
- XmlSchemaValidator.cs
- AccessDataSource.cs
- DataGridViewTextBoxColumn.cs
- ToolStripDropDownButton.cs
- TreeViewBindingsEditorForm.cs
- Control.cs
- SchemaElementLookUpTableEnumerator.cs
- ObjectDataProvider.cs
- BamlRecordHelper.cs
- DataGridViewAccessibleObject.cs
- HtmlInputSubmit.cs
- EncodingTable.cs
- TypeUtils.cs
- figurelengthconverter.cs
- Overlapped.cs
- OptimalTextSource.cs
- IconHelper.cs
- Model3DGroup.cs
- DoubleCollection.cs
- ToolStripContainer.cs
- GlyphsSerializer.cs
- WindowsListViewItem.cs
- FormCollection.cs
- IItemContainerGenerator.cs
- CodeMemberEvent.cs
- FixedSOMTableRow.cs
- Propagator.JoinPropagator.cs
- QilInvokeEarlyBound.cs
- SmuggledIUnknown.cs
- JpegBitmapEncoder.cs
- PriorityQueue.cs
- Geometry.cs
- wgx_commands.cs
- _ChunkParse.cs
- SqlClientPermission.cs
- BaseAsyncResult.cs
- UnmanagedHandle.cs
- ExpressionWriter.cs
- CompilationSection.cs
- Int16Storage.cs
- NativeRecognizer.cs
- TextDecorationCollection.cs
- MaskedTextProvider.cs
- GeneralTransform2DTo3DTo2D.cs
- Update.cs
- SoapObjectWriter.cs
- ValidationPropertyAttribute.cs
- MarkupCompilePass2.cs
- DocumentOrderComparer.cs
- LiteralSubsegment.cs
- DrawingContext.cs
- DictionaryEntry.cs
- Point3DConverter.cs
- HuffmanTree.cs
- RectIndependentAnimationStorage.cs
- WeakRefEnumerator.cs
- ModelPerspective.cs
- TextEditorSelection.cs
- PathSegmentCollection.cs
- XmlObjectSerializerReadContextComplex.cs
- MachineKeySection.cs
- DataColumnChangeEvent.cs
- UIPropertyMetadata.cs
- TextTreeFixupNode.cs
- LogFlushAsyncResult.cs
- LayoutEditorPart.cs
- BindingOperations.cs
- BroadcastEventHelper.cs
- Pen.cs
- WebPartDisplayMode.cs
- TaskResultSetter.cs
- CodeTypeReferenceExpression.cs
- OutputCacheSettings.cs
- CodeNamespaceImportCollection.cs
- DesignerAttribute.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XmlWellformedWriter.cs
- ConfigXmlComment.cs
- BitmapVisualManager.cs
- RemoteWebConfigurationHostServer.cs
- SafeRegistryHandle.cs
- WebServiceReceiveDesigner.cs
- NameObjectCollectionBase.cs
- ExitEventArgs.cs
- Msec.cs
- Context.cs
- QuaternionRotation3D.cs
- ArraySubsetEnumerator.cs
- BuildManager.cs
- SponsorHelper.cs
- SqlDataSourceCustomCommandPanel.cs
- AutoGeneratedField.cs
- XmlLinkedNode.cs
- ExpandedWrapper.cs
- DialogWindow.cs
- Tokenizer.cs
- TrustLevel.cs
- WindowsScroll.cs
- RSACryptoServiceProvider.cs