Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CodeDomConfigurationHandler.cs
- LicFileLicenseProvider.cs
- BinaryMethodMessage.cs
- InstanceCompleteException.cs
- ParameterToken.cs
- UnsafeMethods.cs
- RegexParser.cs
- RoamingStoreFileUtility.cs
- StringUtil.cs
- Wildcard.cs
- UserInitiatedNavigationPermission.cs
- PropertyIdentifier.cs
- SpeechRecognitionEngine.cs
- TransportDefaults.cs
- EventLogPermissionEntryCollection.cs
- QueryPageSettingsEventArgs.cs
- EventMappingSettingsCollection.cs
- TransportChannelListener.cs
- MimeMapping.cs
- XmlNodeChangedEventManager.cs
- RequestQueue.cs
- NativeBuffer.cs
- DeclarativeCatalogPart.cs
- ProjectionQueryOptionExpression.cs
- CqlParserHelpers.cs
- HttpCacheParams.cs
- RenderOptions.cs
- DispatchWrapper.cs
- Size3DValueSerializer.cs
- ProxyManager.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- AsyncResult.cs
- WebConfigurationHostFileChange.cs
- InheritedPropertyDescriptor.cs
- UriExt.cs
- BoundsDrawingContextWalker.cs
- DocumentEventArgs.cs
- ClientApiGenerator.cs
- IDQuery.cs
- DockPanel.cs
- TextUtf8RawTextWriter.cs
- ResourceReferenceExpressionConverter.cs
- XslUrlEditor.cs
- DispatcherObject.cs
- ActiveXSite.cs
- WaveHeader.cs
- ExpressionEditorAttribute.cs
- RegionIterator.cs
- RoleGroupCollectionEditor.cs
- XmlCountingReader.cs
- GC.cs
- SourceFileBuildProvider.cs
- AssemblyInfo.cs
- Events.cs
- PathNode.cs
- ApplicationHost.cs
- Brush.cs
- ColorTransformHelper.cs
- User.cs
- SerializationInfoEnumerator.cs
- WindowsPen.cs
- ControlBuilderAttribute.cs
- CustomWebEventKey.cs
- PointHitTestParameters.cs
- PageParserFilter.cs
- DesignerDataSourceView.cs
- MetafileHeaderWmf.cs
- PropertyValue.cs
- RawStylusInputReport.cs
- HierarchicalDataTemplate.cs
- TableStyle.cs
- Operand.cs
- SqlClientWrapperSmiStreamChars.cs
- ComponentCodeDomSerializer.cs
- WindowsMenu.cs
- HMACSHA1.cs
- RoutedUICommand.cs
- TextModifier.cs
- FrameworkContentElementAutomationPeer.cs
- ApplicationContext.cs
- LocationUpdates.cs
- TextWriter.cs
- SHA512.cs
- SessionEndedEventArgs.cs
- XamlSerializerUtil.cs
- MethodCallConverter.cs
- EndpointFilterProvider.cs
- RawKeyboardInputReport.cs
- TransactionScopeDesigner.cs
- ListControl.cs
- AppendHelper.cs
- AuthenticationModuleElementCollection.cs
- PackageStore.cs
- FixedDocumentSequencePaginator.cs
- SessionPageStateSection.cs
- PathSegment.cs
- SpecialFolderEnumConverter.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ToolStripPanelCell.cs
- SqlTriggerContext.cs