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
- ResourcePart.cs
- ValidationRule.cs
- Animatable.cs
- Journal.cs
- FilterEventArgs.cs
- DoubleCollectionValueSerializer.cs
- JsonFormatWriterGenerator.cs
- InitializerFacet.cs
- MethodImplAttribute.cs
- SqlTypeSystemProvider.cs
- Quad.cs
- TypeUnloadedException.cs
- HandlerFactoryCache.cs
- RijndaelManagedTransform.cs
- HostExecutionContextManager.cs
- ScriptResourceHandler.cs
- COM2Properties.cs
- AuthenticationModulesSection.cs
- SystemThemeKey.cs
- Debug.cs
- GridViewDeletedEventArgs.cs
- DiscriminatorMap.cs
- ConfigXmlCDataSection.cs
- ScrollBarAutomationPeer.cs
- HwndAppCommandInputProvider.cs
- AttributeEmitter.cs
- StringComparer.cs
- RuntimeConfigLKG.cs
- DefaultProxySection.cs
- OleDbCommandBuilder.cs
- _UncName.cs
- CalloutQueueItem.cs
- JsonClassDataContract.cs
- WindowsFormsHelpers.cs
- XPathEmptyIterator.cs
- CompositeCollectionView.cs
- WorkflowLayouts.cs
- LocationSectionRecord.cs
- PropertyExpression.cs
- ExtentKey.cs
- RecordConverter.cs
- SmtpClient.cs
- QueuePathEditor.cs
- ClientProxyGenerator.cs
- TreeViewDesigner.cs
- XmlAtomErrorReader.cs
- _ProxyRegBlob.cs
- SystemIPv4InterfaceProperties.cs
- XmlSchemaSequence.cs
- DragEvent.cs
- CornerRadiusConverter.cs
- ManipulationDevice.cs
- SourceFileInfo.cs
- ToolStripItemClickedEventArgs.cs
- Compensate.cs
- TextEffect.cs
- Control.cs
- SafeRightsManagementQueryHandle.cs
- DataGridViewHeaderCell.cs
- recordstatescratchpad.cs
- TreeNodeStyleCollectionEditor.cs
- UnauthorizedAccessException.cs
- WinFormsUtils.cs
- Event.cs
- TextRangeEditLists.cs
- SQLDecimalStorage.cs
- ProcessThread.cs
- EventProviderBase.cs
- ValidatedMobileControlConverter.cs
- StickyNote.cs
- SqlDuplicator.cs
- TcpProcessProtocolHandler.cs
- AssemblyName.cs
- PageContent.cs
- Misc.cs
- OdbcConnectionPoolProviderInfo.cs
- DbConnectionStringBuilder.cs
- RequestResizeEvent.cs
- UInt64Converter.cs
- FixedSOMImage.cs
- XmlArrayItemAttributes.cs
- XPathDocumentBuilder.cs
- ContainerActivationHelper.cs
- ColumnProvider.cs
- SchemaSetCompiler.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- LogSwitch.cs
- Perspective.cs
- CollectionChangeEventArgs.cs
- KeyTime.cs
- HostProtectionPermission.cs
- PrinterUnitConvert.cs
- TimelineGroup.cs
- ExtractCollection.cs
- CollectionViewGroup.cs
- TdsParserStateObject.cs
- ImageListStreamer.cs
- XmlText.cs
- InputBuffer.cs
- OdbcCommandBuilder.cs