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
- ParallelSeparator.xaml.cs
- OletxCommittableTransaction.cs
- EUCJPEncoding.cs
- IDReferencePropertyAttribute.cs
- MatrixConverter.cs
- login.cs
- BuildProviderAppliesToAttribute.cs
- ListViewCancelEventArgs.cs
- ModuleElement.cs
- CompressionTransform.cs
- CompModSwitches.cs
- ECDiffieHellmanPublicKey.cs
- ValidationHelper.cs
- ForwardPositionQuery.cs
- EntityCommandExecutionException.cs
- TextServicesManager.cs
- BindStream.cs
- PersonalizationStateInfo.cs
- DataSetMappper.cs
- FamilyTypeface.cs
- MouseActionConverter.cs
- ToolStripRenderer.cs
- RecognizedWordUnit.cs
- AnyReturnReader.cs
- EntityType.cs
- ClientRolePrincipal.cs
- ModuleBuilder.cs
- ConstraintEnumerator.cs
- GroupedContextMenuStrip.cs
- TextReader.cs
- XPathAncestorQuery.cs
- EntitySetDataBindingList.cs
- SqlUdtInfo.cs
- ExpressionLexer.cs
- MediaElementAutomationPeer.cs
- Query.cs
- SoapException.cs
- RoutedEventConverter.cs
- SqlFileStream.cs
- ExpanderAutomationPeer.cs
- XmlArrayItemAttributes.cs
- ClassicBorderDecorator.cs
- Int32CollectionConverter.cs
- SslStream.cs
- SizeChangedEventArgs.cs
- InvalidateEvent.cs
- PieceNameHelper.cs
- JapaneseCalendar.cs
- SerializationAttributes.cs
- AnonymousIdentificationSection.cs
- WriteLineDesigner.xaml.cs
- PersonalizationEntry.cs
- BinHexDecoder.cs
- PagedDataSource.cs
- HwndHostAutomationPeer.cs
- SimpleWorkerRequest.cs
- HtmlShimManager.cs
- Ops.cs
- VectorCollectionValueSerializer.cs
- HttpCapabilitiesSectionHandler.cs
- NaturalLanguageHyphenator.cs
- ExpressionBinding.cs
- Compiler.cs
- XmlEntityReference.cs
- Vector3D.cs
- TextEvent.cs
- FontUnit.cs
- WebUtil.cs
- IsolatedStorageFile.cs
- LineBreakRecord.cs
- MinMaxParagraphWidth.cs
- SettingsProperty.cs
- ImageMapEventArgs.cs
- WindowInteropHelper.cs
- SiteMapProvider.cs
- Panel.cs
- UIPermission.cs
- StringAttributeCollection.cs
- RadioButton.cs
- DataGridState.cs
- GregorianCalendar.cs
- DbSetClause.cs
- CodeParameterDeclarationExpression.cs
- XmlTextEncoder.cs
- ParallelTimeline.cs
- ActionFrame.cs
- VirtualDirectoryMapping.cs
- TypeConverterValueSerializer.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- StreamReader.cs
- XmlEntity.cs
- PersonalizationProvider.cs
- MessageTraceRecord.cs
- IsolatedStorageFile.cs
- ErrorEventArgs.cs
- RegexRunner.cs
- TriggerCollection.cs
- ContextMenuStrip.cs
- GAC.cs
- UpdateTranslator.cs