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
- WebPartManager.cs
- PackUriHelper.cs
- BinaryConverter.cs
- OptimizedTemplateContentHelper.cs
- ConfigXmlAttribute.cs
- OracleRowUpdatingEventArgs.cs
- TextRunTypographyProperties.cs
- EncodingTable.cs
- UIPermission.cs
- TreeNodeBinding.cs
- SingleResultAttribute.cs
- WebPartTransformerCollection.cs
- TreeNode.cs
- ParseChildrenAsPropertiesAttribute.cs
- Rectangle.cs
- TypeForwardedToAttribute.cs
- Encoding.cs
- PerformanceCounterPermission.cs
- CounterSet.cs
- OpenTypeLayout.cs
- NumberFunctions.cs
- ObjectDisposedException.cs
- XmlSchemaExternal.cs
- CustomError.cs
- _AutoWebProxyScriptHelper.cs
- XmlDataSource.cs
- CustomAttribute.cs
- RegionData.cs
- SQLCharsStorage.cs
- DataGridRow.cs
- ColorDialog.cs
- TreeViewHitTestInfo.cs
- CuspData.cs
- Label.cs
- TailCallAnalyzer.cs
- GridViewCellAutomationPeer.cs
- CalendarBlackoutDatesCollection.cs
- TreeView.cs
- UpdateExpressionVisitor.cs
- ClrProviderManifest.cs
- DrawingAttributes.cs
- SynchronizationLockException.cs
- BasePattern.cs
- ConfigXmlText.cs
- SmiConnection.cs
- Light.cs
- Accessors.cs
- CompensationParticipant.cs
- XPathItem.cs
- ReversePositionQuery.cs
- CalendarButton.cs
- GlyphShapingProperties.cs
- SecurityHelper.cs
- OdbcError.cs
- TextBox.cs
- CategoryNameCollection.cs
- SmiEventStream.cs
- HighContrastHelper.cs
- ProtectedConfigurationSection.cs
- LogicalTreeHelper.cs
- JournalEntryListConverter.cs
- StrokeCollection.cs
- ExtendedProtectionPolicy.cs
- MainMenu.cs
- SHA1.cs
- ContainerSelectorBehavior.cs
- TextEditorThreadLocalStore.cs
- WindowsFormsSectionHandler.cs
- BackEase.cs
- GroupQuery.cs
- VerticalAlignConverter.cs
- ScrollItemPatternIdentifiers.cs
- SqlError.cs
- CompilationUtil.cs
- TextBoxLine.cs
- PageAdapter.cs
- LostFocusEventManager.cs
- ConstructorBuilder.cs
- StopStoryboard.cs
- log.cs
- SafeWaitHandle.cs
- ProgressPage.cs
- BitConverter.cs
- CharacterMetricsDictionary.cs
- PenThreadWorker.cs
- sqlnorm.cs
- RuleSetDialog.cs
- EdmTypeAttribute.cs
- MetabaseReader.cs
- Error.cs
- ToolboxItemAttribute.cs
- WindowsSecurityToken.cs
- SmiEventSink_DeferedProcessing.cs
- SectionRecord.cs
- PreloadedPackages.cs
- WebSysDescriptionAttribute.cs
- CollectionChangedEventManager.cs
- SqlConnectionPoolProviderInfo.cs
- OperationFormatUse.cs
- HttpModulesSection.cs