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
- CompilerParameters.cs
- FlowDocumentPage.cs
- base64Transforms.cs
- HttpServerChannel.cs
- BufferedOutputStream.cs
- ImageMap.cs
- JsonFormatGeneratorStatics.cs
- GroupStyle.cs
- EmptyElement.cs
- WSTrustDec2005.cs
- CollectionConverter.cs
- PrimitiveType.cs
- ComponentResourceKeyConverter.cs
- WsdlParser.cs
- LOSFormatter.cs
- LoginName.cs
- HtmlInputSubmit.cs
- HtmlInputSubmit.cs
- ConfigurationConverterBase.cs
- FlowLayoutSettings.cs
- MLangCodePageEncoding.cs
- Function.cs
- WebServiceReceiveDesigner.cs
- Model3D.cs
- ConcatQueryOperator.cs
- WebControlAdapter.cs
- XmlSubtreeReader.cs
- ServicePointManagerElement.cs
- ValidationError.cs
- ControlPaint.cs
- UIElement3D.cs
- HtmlInputSubmit.cs
- ProcessRequestArgs.cs
- BreadCrumbTextConverter.cs
- FilterableAttribute.cs
- PathFigure.cs
- RegexCompiler.cs
- TextElementEnumerator.cs
- SymbolResolver.cs
- RevocationPoint.cs
- XamlSerializationHelper.cs
- ErrorFormatter.cs
- LinkedList.cs
- DocumentSignatureManager.cs
- InvalidPrinterException.cs
- Group.cs
- FocusWithinProperty.cs
- DebuggerAttributes.cs
- DispatcherProcessingDisabled.cs
- AssemblySettingAttributes.cs
- HandlerBase.cs
- MenuScrollingVisibilityConverter.cs
- Queue.cs
- ByteFacetDescriptionElement.cs
- Attributes.cs
- XmlAnyElementAttributes.cs
- ExtensionQuery.cs
- MenuItem.cs
- CompilerTypeWithParams.cs
- AttributeXamlType.cs
- DragDeltaEventArgs.cs
- TypeConverterAttribute.cs
- ConfigXmlElement.cs
- InheritanceAttribute.cs
- DBNull.cs
- AutoCompleteStringCollection.cs
- UrlPropertyAttribute.cs
- ControlIdConverter.cs
- Literal.cs
- LoginView.cs
- URLString.cs
- TypeConverterAttribute.cs
- ComponentGuaranteesAttribute.cs
- AssemblyFilter.cs
- RegexRunner.cs
- InternalConfigHost.cs
- QueryableDataSourceEditData.cs
- DocComment.cs
- DataGridDesigner.cs
- TypedElement.cs
- ServicePointManagerElement.cs
- DesignerCatalogPartChrome.cs
- ResourcePermissionBaseEntry.cs
- SafeSecurityHelper.cs
- Set.cs
- AdornerLayer.cs
- securestring.cs
- FixedSOMPageElement.cs
- IPHostEntry.cs
- EntityDataSourceWizardForm.cs
- MatchingStyle.cs
- MemoryFailPoint.cs
- Switch.cs
- HttpCacheVary.cs
- MdiWindowListStrip.cs
- UnsafePeerToPeerMethods.cs
- KoreanCalendar.cs
- EnvironmentPermission.cs
- PolicyLevel.cs
- HttpRuntime.cs