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
- CurrencyManager.cs
- Pointer.cs
- MsdtcWrapper.cs
- _NetRes.cs
- EnumBuilder.cs
- EncryptedPackage.cs
- VirtualPath.cs
- InkCanvas.cs
- FormsAuthenticationEventArgs.cs
- DataContext.cs
- XmlDataDocument.cs
- SqlAliasesReferenced.cs
- GridView.cs
- TextContainer.cs
- HtmlInputHidden.cs
- HttpCachePolicy.cs
- RoutedPropertyChangedEventArgs.cs
- SqlVisitor.cs
- ResumeStoryboard.cs
- TrustManager.cs
- ApplicationException.cs
- XsdBuildProvider.cs
- ViewCellSlot.cs
- InternalResources.cs
- WebServiceTypeData.cs
- Match.cs
- PenContexts.cs
- SqlTypesSchemaImporter.cs
- ServicePoint.cs
- SQLByteStorage.cs
- HMACSHA256.cs
- FontSizeConverter.cs
- CompoundFileStorageReference.cs
- Icon.cs
- BindingSource.cs
- DirectoryLocalQuery.cs
- Rss20FeedFormatter.cs
- WorkflowRuntimeServiceElementCollection.cs
- DrawingBrush.cs
- Operators.cs
- TextOnlyOutput.cs
- BinaryNode.cs
- ExtendedPropertiesHandler.cs
- PassportIdentity.cs
- DbException.cs
- DockPattern.cs
- DynamicILGenerator.cs
- BindUriHelper.cs
- EntityModelSchemaGenerator.cs
- RangeContentEnumerator.cs
- RequestCache.cs
- KeyInfo.cs
- Int32CollectionValueSerializer.cs
- ListBoxChrome.cs
- DrawingContextWalker.cs
- PngBitmapEncoder.cs
- SymLanguageType.cs
- XmlSchemaException.cs
- DataGridViewAutoSizeModeEventArgs.cs
- Application.cs
- CommandField.cs
- ValueTable.cs
- InputBindingCollection.cs
- XPathNodeIterator.cs
- DBPropSet.cs
- LazyTextWriterCreator.cs
- ImageMapEventArgs.cs
- MeasurementDCInfo.cs
- WebConfigurationFileMap.cs
- StateBag.cs
- RuntimeConfig.cs
- COAUTHINFO.cs
- Font.cs
- HelpEvent.cs
- AuthenticationConfig.cs
- XmlMembersMapping.cs
- EditableRegion.cs
- EntityDataSourceStatementEditor.cs
- ToolboxItemImageConverter.cs
- NameSpaceExtractor.cs
- SignatureDescription.cs
- BaseTemplateCodeDomTreeGenerator.cs
- ViewCellRelation.cs
- StrokeNodeData.cs
- Cloud.cs
- PageAsyncTaskManager.cs
- translator.cs
- AppDomainFactory.cs
- OutputCacheSettingsSection.cs
- DiscoveryRequestHandler.cs
- DurableDispatcherAddressingFault.cs
- DbXmlEnabledProviderManifest.cs
- EntityContainerEmitter.cs
- WebContext.cs
- LoadRetryAsyncResult.cs
- TTSEngineTypes.cs
- SemanticTag.cs
- DropTarget.cs
- AttributeEmitter.cs
- XmlCollation.cs