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
- XPathAncestorQuery.cs
- sqlmetadatafactory.cs
- TextAnchor.cs
- HyperLinkColumn.cs
- GPPOINTF.cs
- TransactionException.cs
- DataServiceKeyAttribute.cs
- Imaging.cs
- FocusTracker.cs
- DocumentXPathNavigator.cs
- DrawingDrawingContext.cs
- CheckoutException.cs
- RelationshipSet.cs
- ValuePatternIdentifiers.cs
- ButtonFlatAdapter.cs
- TextTreeNode.cs
- SmtpAuthenticationManager.cs
- DataGridViewTextBoxEditingControl.cs
- TemplateAction.cs
- RuntimeConfig.cs
- DataGridBoolColumn.cs
- ZoneButton.cs
- SystemTcpConnection.cs
- TrustLevelCollection.cs
- RegexNode.cs
- DelegatedStream.cs
- HtmlLink.cs
- XmlDictionary.cs
- ReturnType.cs
- ImageListImage.cs
- TypedDatasetGenerator.cs
- TableParaClient.cs
- DrawingContextWalker.cs
- PeerToPeerException.cs
- RuntimeHelpers.cs
- XmlSchemaAnnotated.cs
- CodeObject.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- BlobPersonalizationState.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- cookieexception.cs
- LocalTransaction.cs
- EdmEntityTypeAttribute.cs
- TrustManager.cs
- Drawing.cs
- InputBinding.cs
- AssemblyBuilderData.cs
- ModelItemImpl.cs
- TimeSpan.cs
- QilValidationVisitor.cs
- AuthenticationSection.cs
- PcmConverter.cs
- WorkflowMessageEventArgs.cs
- SymmetricKeyWrap.cs
- GregorianCalendarHelper.cs
- DefaultDialogButtons.cs
- _TimerThread.cs
- UTF8Encoding.cs
- IssuanceTokenProviderState.cs
- OledbConnectionStringbuilder.cs
- LicenseContext.cs
- InvalidTimeZoneException.cs
- MatrixTransform.cs
- ComplexLine.cs
- GridViewPageEventArgs.cs
- Win32SafeHandles.cs
- UnsafeNativeMethods.cs
- DataControlFieldCell.cs
- Section.cs
- IODescriptionAttribute.cs
- DrawListViewColumnHeaderEventArgs.cs
- DataGridViewTextBoxEditingControl.cs
- GridErrorDlg.cs
- WaitForChangedResult.cs
- NativeCppClassAttribute.cs
- CriticalHandle.cs
- SiteMapNode.cs
- BindingListCollectionView.cs
- TransformConverter.cs
- DeobfuscatingStream.cs
- TextServicesCompartmentContext.cs
- UidPropertyAttribute.cs
- ProjectionPathBuilder.cs
- FileChangesMonitor.cs
- ShaderRenderModeValidation.cs
- SspiNegotiationTokenProvider.cs
- TableRow.cs
- FaultPropagationRecord.cs
- HtmlControl.cs
- WebPartConnectionsCancelVerb.cs
- TextBox.cs
- TableParagraph.cs
- QilName.cs
- SamlAssertionKeyIdentifierClause.cs
- DataServiceKeyAttribute.cs
- CalculatedColumn.cs
- Number.cs
- URI.cs
- Compiler.cs
- SecurityUtils.cs