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
- XamlStyleSerializer.cs
- FormsAuthenticationTicket.cs
- SqlDataSourceSelectingEventArgs.cs
- TextBox.cs
- ConfigurationManagerInternal.cs
- QilXmlReader.cs
- OdbcUtils.cs
- SqlGenerator.cs
- InfoCardClaim.cs
- Asn1IntegerConverter.cs
- SoapDocumentMethodAttribute.cs
- MeshGeometry3D.cs
- SpecularMaterial.cs
- InputElement.cs
- AppSettingsReader.cs
- X509CertificateTokenFactoryCredential.cs
- PreviewPageInfo.cs
- SchemaSetCompiler.cs
- FormViewUpdateEventArgs.cs
- CodeTypeDeclaration.cs
- WebResponse.cs
- UnsafeNativeMethods.cs
- LeaseManager.cs
- TextBox.cs
- MobileControlDesigner.cs
- CapabilitiesState.cs
- GlyphRun.cs
- AssertHelper.cs
- InvokeHandlers.cs
- SHA1CryptoServiceProvider.cs
- WindowsListViewGroup.cs
- SqlDataSourceTableQuery.cs
- TCPClient.cs
- SqlConnectionPoolGroupProviderInfo.cs
- DBSchemaRow.cs
- PageCodeDomTreeGenerator.cs
- PropertyTabChangedEvent.cs
- RegisteredArrayDeclaration.cs
- AccessibilityHelperForVista.cs
- EditorOptionAttribute.cs
- DragDrop.cs
- EntitySqlQueryCacheEntry.cs
- TimeoutHelper.cs
- Wizard.cs
- RootBrowserWindowProxy.cs
- Transform.cs
- DataBindingCollectionConverter.cs
- CultureInfo.cs
- UIHelper.cs
- EntityCommand.cs
- WsdlBuildProvider.cs
- CompilerGeneratedAttribute.cs
- PropertyContainer.cs
- FixedFindEngine.cs
- DiffuseMaterial.cs
- NavigationWindow.cs
- MultipleViewPattern.cs
- TreeViewDataItemAutomationPeer.cs
- SqlBinder.cs
- RoutingChannelExtension.cs
- GlyphsSerializer.cs
- State.cs
- MediaCommands.cs
- HMACSHA384.cs
- NamedServiceModelExtensionCollectionElement.cs
- ArraySubsetEnumerator.cs
- TypeBuilder.cs
- InputDevice.cs
- PieceNameHelper.cs
- CryptoApi.cs
- ActivityAction.cs
- DataGridViewCellStyle.cs
- ArrayElementGridEntry.cs
- DataGridSortCommandEventArgs.cs
- RuleValidation.cs
- PerspectiveCamera.cs
- Triplet.cs
- Hash.cs
- CodeChecksumPragma.cs
- PreservationFileWriter.cs
- DataViewListener.cs
- ControlCachePolicy.cs
- BaseParser.cs
- TreeNodeStyle.cs
- Form.cs
- WebRequestModuleElementCollection.cs
- CommonXSendMessage.cs
- RMEnrollmentPage1.cs
- WeakRefEnumerator.cs
- SecuritySessionServerSettings.cs
- CodeSnippetStatement.cs
- wmiprovider.cs
- SecurityTokenRequirement.cs
- GenericUriParser.cs
- HttpAsyncResult.cs
- VerificationException.cs
- CompoundFileStorageReference.cs
- RelationshipEndMember.cs
- XmlSchemaIdentityConstraint.cs
- RegexCompiler.cs