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
- NullableIntSumAggregationOperator.cs
- TimersDescriptionAttribute.cs
- ImageListUtils.cs
- ExtendedProtectionPolicyElement.cs
- ZipIORawDataFileBlock.cs
- TypedDataSetSchemaImporterExtension.cs
- DataSourceGeneratorException.cs
- X509ChainElement.cs
- DebugView.cs
- Binding.cs
- StorageSetMapping.cs
- BaseTemplateBuildProvider.cs
- DesignUtil.cs
- PenLineJoinValidation.cs
- BaseCAMarshaler.cs
- PermissionAttributes.cs
- SqlSupersetValidator.cs
- UriSectionReader.cs
- CommonGetThemePartSize.cs
- WindowsFormsEditorServiceHelper.cs
- ReaderWriterLockWrapper.cs
- EdmSchemaAttribute.cs
- RuntimeUtils.cs
- Imaging.cs
- Material.cs
- Section.cs
- EventLogPermissionEntryCollection.cs
- Line.cs
- BuildProviderCollection.cs
- RuntimeVariableList.cs
- ApplicationId.cs
- SystemColors.cs
- PerformanceCounters.cs
- NameTable.cs
- ContainerAction.cs
- KeyboardEventArgs.cs
- AbstractSvcMapFileLoader.cs
- DesignTimeValidationFeature.cs
- StringFunctions.cs
- ToolStripContainer.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- CodeDirectoryCompiler.cs
- InputElement.cs
- DbModificationCommandTree.cs
- PageContentAsyncResult.cs
- UpdateException.cs
- WebHeaderCollection.cs
- GeneratedCodeAttribute.cs
- GlyphsSerializer.cs
- DocumentReferenceCollection.cs
- ResourcesGenerator.cs
- TimelineGroup.cs
- ExpressionEditorSheet.cs
- IndentedWriter.cs
- ValidationResult.cs
- MasterPageCodeDomTreeGenerator.cs
- WebPartChrome.cs
- HttpGetProtocolImporter.cs
- PageAsyncTask.cs
- String.cs
- CounterSampleCalculator.cs
- GroupLabel.cs
- EmptyElement.cs
- PropertyTabChangedEvent.cs
- OdbcTransaction.cs
- MouseOverProperty.cs
- WebResourceAttribute.cs
- BridgeDataRecord.cs
- HybridDictionary.cs
- XmlSchemaAnnotated.cs
- AppDomainShutdownMonitor.cs
- X509CertificateCollection.cs
- WebBrowserHelper.cs
- SimpleType.cs
- CodeArrayCreateExpression.cs
- RequestCachingSection.cs
- RijndaelManaged.cs
- DefaultParameterValueAttribute.cs
- EntityWrapperFactory.cs
- ExtenderControl.cs
- SetStoryboardSpeedRatio.cs
- HostedBindingBehavior.cs
- RestClientProxyHandler.cs
- PkcsMisc.cs
- HostingEnvironmentException.cs
- DbReferenceCollection.cs
- AsmxEndpointPickerExtension.cs
- TransactionInterop.cs
- SqlFactory.cs
- WebPartConnectVerb.cs
- DecimalAnimation.cs
- OdbcErrorCollection.cs
- MetafileHeaderWmf.cs
- TreeNode.cs
- Tile.cs
- MenuAutomationPeer.cs
- TrackingCondition.cs
- PersistencePipeline.cs
- RefType.cs
- TemplateControlParser.cs