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
- MemberRelationshipService.cs
- LZCodec.cs
- SessionEndingEventArgs.cs
- ToolboxItemLoader.cs
- SiteIdentityPermission.cs
- ImageMap.cs
- SettingsProperty.cs
- ServiceObjectContainer.cs
- WebRequestModuleElement.cs
- SamlSerializer.cs
- DataGridItemCollection.cs
- SyndicationElementExtension.cs
- CounterSetInstanceCounterDataSet.cs
- SystemIPGlobalProperties.cs
- OracleException.cs
- PropertyGroupDescription.cs
- StateInitializationDesigner.cs
- CodeTypeParameter.cs
- WebOperationContext.cs
- SspiNegotiationTokenAuthenticator.cs
- PerformanceCounterNameAttribute.cs
- CaseInsensitiveHashCodeProvider.cs
- GeneralTransform2DTo3DTo2D.cs
- SimpleHandlerBuildProvider.cs
- TextParaClient.cs
- LocatorPart.cs
- EndpointReference.cs
- IdnMapping.cs
- DataGridBoolColumn.cs
- CaseExpr.cs
- Environment.cs
- WhitespaceRuleReader.cs
- DigestComparer.cs
- LoginDesignerUtil.cs
- XmlSchemaSimpleType.cs
- ChannelReliableSession.cs
- AbstractDataSvcMapFileLoader.cs
- MatrixTransform.cs
- EntityStoreSchemaFilterEntry.cs
- ClientSideProviderDescription.cs
- BookmarkEventArgs.cs
- _ChunkParse.cs
- TypeDescriptionProviderAttribute.cs
- PreProcessInputEventArgs.cs
- ProvidePropertyAttribute.cs
- SettingsBase.cs
- WCFBuildProvider.cs
- PeerTransportCredentialType.cs
- Attributes.cs
- TextRunCacheImp.cs
- ProfileProvider.cs
- AppDomainProtocolHandler.cs
- SortExpressionBuilder.cs
- RawMouseInputReport.cs
- EffectiveValueEntry.cs
- XmlHelper.cs
- Profiler.cs
- ResourcePermissionBase.cs
- RowVisual.cs
- Comparer.cs
- PerformanceCountersElement.cs
- ConfigurationValue.cs
- OutputCacheSection.cs
- PageCatalogPart.cs
- VideoDrawing.cs
- Expression.cs
- ExtenderProvidedPropertyAttribute.cs
- IconBitmapDecoder.cs
- BuildProvider.cs
- LinkedList.cs
- basevalidator.cs
- WebPartDisplayModeCancelEventArgs.cs
- PageRanges.cs
- XmlSchemaResource.cs
- CodeAssignStatement.cs
- UnionCodeGroup.cs
- DebugController.cs
- CqlWriter.cs
- XpsS0ValidatingLoader.cs
- GenericEnumConverter.cs
- OpCellTreeNode.cs
- SaveRecipientRequest.cs
- AttributeQuery.cs
- GroupByQueryOperator.cs
- MemberInitExpression.cs
- FileSystemWatcher.cs
- LinqMaximalSubtreeNominator.cs
- EncoderExceptionFallback.cs
- ConvertersCollection.cs
- Size3D.cs
- DetectEofStream.cs
- NumericPagerField.cs
- DNS.cs
- SourceSwitch.cs
- ActivityXRefConverter.cs
- ITextView.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- FileAuthorizationModule.cs
- XmlQualifiedName.cs
- AsyncResult.cs