Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- FileChangesMonitor.cs
- SqlConnectionPoolProviderInfo.cs
- xmlglyphRunInfo.cs
- Viewport3DVisual.cs
- PropertiesTab.cs
- RegexMatchCollection.cs
- ChildrenQuery.cs
- SizeIndependentAnimationStorage.cs
- WebPartEditorCancelVerb.cs
- ReflectEventDescriptor.cs
- PolicyStatement.cs
- JsonReader.cs
- MemberMaps.cs
- DataServiceException.cs
- MetadataCollection.cs
- URLString.cs
- Completion.cs
- PrintingPermission.cs
- TableDetailsCollection.cs
- CaseKeyBox.ViewModel.cs
- ControlPaint.cs
- HierarchicalDataBoundControlAdapter.cs
- ScriptIgnoreAttribute.cs
- Point3DAnimationUsingKeyFrames.cs
- CompressionTracing.cs
- ExceptionTrace.cs
- NotifyIcon.cs
- Symbol.cs
- DoubleAnimationClockResource.cs
- VisualStyleElement.cs
- Directory.cs
- CompilerGeneratedAttribute.cs
- RemoteWebConfigurationHost.cs
- BaseTemplateParser.cs
- BamlLocalizer.cs
- ContentIterators.cs
- DataMisalignedException.cs
- safex509handles.cs
- _OSSOCK.cs
- SiteMapSection.cs
- BaseAutoFormat.cs
- CodeDOMProvider.cs
- WebBrowserPermission.cs
- TypedReference.cs
- DefaultAutoFieldGenerator.cs
- CheckBoxPopupAdapter.cs
- StringCollectionMarkupSerializer.cs
- IndentTextWriter.cs
- VirtualizingStackPanel.cs
- StrongNamePublicKeyBlob.cs
- PageBreakRecord.cs
- NativeMethods.cs
- NewItemsContextMenuStrip.cs
- TemplateInstanceAttribute.cs
- HttpDebugHandler.cs
- FileSystemEventArgs.cs
- TextEditorCharacters.cs
- DeleteIndexBinder.cs
- AQNBuilder.cs
- SkewTransform.cs
- InvalidPrinterException.cs
- ExpressionCopier.cs
- UrlPropertyAttribute.cs
- ServiceAuthorizationManager.cs
- TemplateKey.cs
- CheckBoxRenderer.cs
- DataKey.cs
- IApplicationTrustManager.cs
- NewArray.cs
- BooleanFunctions.cs
- SoapFault.cs
- HandleExceptionArgs.cs
- ComplexType.cs
- PersianCalendar.cs
- DateTimePicker.cs
- ResourcesGenerator.cs
- ColorAnimationUsingKeyFrames.cs
- PeerCollaborationPermission.cs
- ServicesUtilities.cs
- Literal.cs
- RoutedCommand.cs
- DbMetaDataFactory.cs
- exports.cs
- TrackingDataItem.cs
- WebAdminConfigurationHelper.cs
- RadialGradientBrush.cs
- FormClosedEvent.cs
- UInt32.cs
- documentation.cs
- EntityTypeEmitter.cs
- DataObject.cs
- ColumnResizeUndoUnit.cs
- Panel.cs
- EntityDataSourceView.cs
- SystemUdpStatistics.cs
- GlyphCollection.cs
- GridView.cs
- Compiler.cs
- StagingAreaInputItem.cs
- DataControlImageButton.cs