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
- EventQueueState.cs
- IChannel.cs
- ConfigsHelper.cs
- CharEnumerator.cs
- XmlEventCache.cs
- CommandConverter.cs
- ListBoxAutomationPeer.cs
- SerializationSectionGroup.cs
- SpotLight.cs
- DecimalAnimationUsingKeyFrames.cs
- KeyedCollection.cs
- TableLayoutPanel.cs
- AmbientLight.cs
- Certificate.cs
- Margins.cs
- AssociationTypeEmitter.cs
- XPathNodePointer.cs
- HMACMD5.cs
- LayoutUtils.cs
- OdbcConnectionPoolProviderInfo.cs
- SchemaMapping.cs
- NumberSubstitution.cs
- MarkupExtensionParser.cs
- DynamicPropertyHolder.cs
- GridViewSortEventArgs.cs
- ClientFormsIdentity.cs
- HtmlInputReset.cs
- Attribute.cs
- XmlTextAttribute.cs
- ProjectionCamera.cs
- SqlDataSourceFilteringEventArgs.cs
- ClusterRegistryConfigurationProvider.cs
- MetadataUtilsSmi.cs
- ConfigurationLocationCollection.cs
- DetailsViewCommandEventArgs.cs
- IPAddressCollection.cs
- BitVector32.cs
- DataGridRow.cs
- ContentFilePart.cs
- CodeAttributeDeclaration.cs
- Array.cs
- UpdateManifestForBrowserApplication.cs
- DataControlField.cs
- DbConnectionOptions.cs
- VectorAnimation.cs
- QilVisitor.cs
- WsrmFault.cs
- GenericNameHandler.cs
- AgileSafeNativeMemoryHandle.cs
- ExcludeFromCodeCoverageAttribute.cs
- NumberSubstitution.cs
- BaseProcessor.cs
- SpotLight.cs
- _SingleItemRequestCache.cs
- X500Name.cs
- TaskFormBase.cs
- Storyboard.cs
- WebSysDisplayNameAttribute.cs
- DoubleAnimation.cs
- BitConverter.cs
- AlphabeticalEnumConverter.cs
- KeyEvent.cs
- PKCS1MaskGenerationMethod.cs
- EntitySetDataBindingList.cs
- LogEntryHeaderv1Deserializer.cs
- DataGridViewRowStateChangedEventArgs.cs
- MsmqHostedTransportManager.cs
- FixedSOMSemanticBox.cs
- WebPartTransformerAttribute.cs
- MatcherBuilder.cs
- ScriptManagerProxy.cs
- UIElementIsland.cs
- HttpInputStream.cs
- ActiveXSerializer.cs
- PermissionSetTriple.cs
- Missing.cs
- _HeaderInfo.cs
- IdentityHolder.cs
- CompiledQuery.cs
- TimeEnumHelper.cs
- DataGridCellItemAutomationPeer.cs
- RadioButtonDesigner.cs
- ConfigXmlText.cs
- TemplateXamlParser.cs
- EntityDataSourceStatementEditor.cs
- PrinterUnitConvert.cs
- DtcInterfaces.cs
- NaturalLanguageHyphenator.cs
- HttpApplication.cs
- DataGridViewTopLeftHeaderCell.cs
- DataPager.cs
- EmulateRecognizeCompletedEventArgs.cs
- LockCookie.cs
- ThreadExceptionDialog.cs
- Interfaces.cs
- ProgressBar.cs
- MergeFailedEvent.cs
- GeneralTransform3D.cs
- SpellCheck.cs
- OrderedDictionaryStateHelper.cs