Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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 // 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. // 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
- Section.cs
- NotifyParentPropertyAttribute.cs
- SafeLibraryHandle.cs
- LogExtent.cs
- PkcsUtils.cs
- ErrorEventArgs.cs
- XmlSchemaIdentityConstraint.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- AnimationException.cs
- MtomMessageEncoder.cs
- RSAOAEPKeyExchangeDeformatter.cs
- InputElement.cs
- SafeFileMappingHandle.cs
- SuppressIldasmAttribute.cs
- CounterCreationDataCollection.cs
- PathTooLongException.cs
- GrammarBuilderDictation.cs
- DataTableCollection.cs
- QilDataSource.cs
- ZoomingMessageFilter.cs
- GridViewCommandEventArgs.cs
- Tuple.cs
- AuthenticationSection.cs
- Activator.cs
- VariableAction.cs
- StateMachineWorkflowDesigner.cs
- httpserverutility.cs
- ISAPIRuntime.cs
- OracleColumn.cs
- TraceHandlerErrorFormatter.cs
- TypeInfo.cs
- ComboBoxDesigner.cs
- SmiEventStream.cs
- DataRowView.cs
- TrackBarRenderer.cs
- MdiWindowListStrip.cs
- SingleSelectRootGridEntry.cs
- Control.cs
- WebControl.cs
- KeyGestureConverter.cs
- CallId.cs
- MutexSecurity.cs
- Clause.cs
- ImageBrush.cs
- SingleObjectCollection.cs
- CompositeFontInfo.cs
- GridViewDeleteEventArgs.cs
- Module.cs
- ControlPropertyNameConverter.cs
- NavigationHelper.cs
- Transform.cs
- PartialToken.cs
- Utils.cs
- WebPartZone.cs
- InternalRelationshipCollection.cs
- DnsPermission.cs
- EntityAdapter.cs
- Trigger.cs
- EntitySqlQueryCacheKey.cs
- SystemIPGlobalStatistics.cs
- ListViewItemMouseHoverEvent.cs
- Util.cs
- DataReceivedEventArgs.cs
- documentation.cs
- DbSetClause.cs
- WebBrowserNavigatingEventHandler.cs
- FtpCachePolicyElement.cs
- ConstructorNeedsTagAttribute.cs
- DistinctQueryOperator.cs
- TaskFormBase.cs
- Logging.cs
- DependencyPropertyConverter.cs
- ColumnBinding.cs
- CompositeCollectionView.cs
- Convert.cs
- CriticalHandle.cs
- FileLevelControlBuilderAttribute.cs
- TypeUtil.cs
- ConfigXmlText.cs
- MulticastNotSupportedException.cs
- DataTableClearEvent.cs
- NoClickablePointException.cs
- DoubleAnimationUsingPath.cs
- SafeCancelMibChangeNotify.cs
- ViewStateException.cs
- FloatSumAggregationOperator.cs
- DesignerExtenders.cs
- DebugView.cs
- ToolStripContentPanelRenderEventArgs.cs
- TypeSystem.cs
- DropAnimation.xaml.cs
- DataViewManagerListItemTypeDescriptor.cs
- NativeConfigurationLoader.cs
- DesignerImageAdapter.cs
- ZipFileInfoCollection.cs
- Form.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- RadioButtonFlatAdapter.cs
- MsmqActivation.cs
- CookieHandler.cs