Code:
/ 4.0 / 4.0 / 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. // 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
- WindowsFont.cs
- TimerElapsedEvenArgs.cs
- InfoCardClaimCollection.cs
- NopReturnReader.cs
- RemotingException.cs
- XamlHostingSectionGroup.cs
- RuleSetBrowserDialog.cs
- StringCollectionMarkupSerializer.cs
- UnmanagedBitmapWrapper.cs
- HttpWebRequestElement.cs
- CardSpaceException.cs
- SelectionEditingBehavior.cs
- MatrixTransform3D.cs
- PagedDataSource.cs
- StylusPoint.cs
- List.cs
- XamlToRtfParser.cs
- SpecularMaterial.cs
- FixedSOMTextRun.cs
- Duration.cs
- FixedDocumentPaginator.cs
- TextEditorThreadLocalStore.cs
- ProgressChangedEventArgs.cs
- XmlSchemaCollection.cs
- BinaryOperationBinder.cs
- HttpPostedFile.cs
- ReleaseInstanceMode.cs
- RectAnimationBase.cs
- ToolStripLabel.cs
- TemplateManager.cs
- ThrowHelper.cs
- MouseGestureConverter.cs
- Axis.cs
- BStrWrapper.cs
- DictionaryChange.cs
- RawStylusInput.cs
- PrintDialog.cs
- XamlFxTrace.cs
- LabelDesigner.cs
- GreenMethods.cs
- DataGridViewColumn.cs
- DynamicRenderer.cs
- ConfigurationManagerInternalFactory.cs
- SettingsPropertyCollection.cs
- PropertyGridCommands.cs
- ExpressionNormalizer.cs
- ObjectContext.cs
- HuffmanTree.cs
- COM2EnumConverter.cs
- RelationalExpressions.cs
- HealthMonitoringSectionHelper.cs
- TextServicesManager.cs
- HttpCookiesSection.cs
- _DynamicWinsockMethods.cs
- RoleBoolean.cs
- EventHandlers.cs
- HttpCacheVary.cs
- BinaryUtilClasses.cs
- XmlAttributeHolder.cs
- CodeVariableReferenceExpression.cs
- DeferredTextReference.cs
- ParserOptions.cs
- SessionPageStatePersister.cs
- XmlComplianceUtil.cs
- elementinformation.cs
- CursorConverter.cs
- OleDbCommand.cs
- PriorityBindingExpression.cs
- FormViewUpdateEventArgs.cs
- JsonQNameDataContract.cs
- ListViewTableRow.cs
- JsonWriter.cs
- AddingNewEventArgs.cs
- SQLInt64.cs
- ComNativeDescriptor.cs
- XmlWhitespace.cs
- TextServicesCompartment.cs
- DataSourceHelper.cs
- FunctionDetailsReader.cs
- TypeLibConverter.cs
- GeometryModel3D.cs
- NoneExcludedImageIndexConverter.cs
- TextTreeFixupNode.cs
- RichTextBox.cs
- TextContainerChangeEventArgs.cs
- ScrollPattern.cs
- PreservationFileReader.cs
- ServiceEndpoint.cs
- ObjectDataSourceWizardForm.cs
- StylusPointPropertyInfo.cs
- WebRequestModuleElementCollection.cs
- PathFigureCollectionConverter.cs
- TreeNodeBinding.cs
- BreadCrumbTextConverter.cs
- NameValueConfigurationElement.cs
- ButtonStandardAdapter.cs
- MouseGesture.cs
- TransformerInfoCollection.cs
- OdbcParameterCollection.cs
- IPipelineRuntime.cs