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
- ConsumerConnectionPoint.cs
- MissingManifestResourceException.cs
- TabRenderer.cs
- CodeSpit.cs
- DbSourceCommand.cs
- CompoundFileIOPermission.cs
- BitmapEffectvisualstate.cs
- DrawingImage.cs
- SyndicationDeserializer.cs
- FixedPageStructure.cs
- FtpCachePolicyElement.cs
- AdapterDictionary.cs
- EncryptedReference.cs
- TextureBrush.cs
- DataObjectCopyingEventArgs.cs
- StringFreezingAttribute.cs
- WpfXamlType.cs
- ProfileSection.cs
- AlphabeticalEnumConverter.cs
- DataBoundControl.cs
- SrgsRuleRef.cs
- Util.cs
- CustomValidator.cs
- SqlBuilder.cs
- TransformGroup.cs
- CustomErrorCollection.cs
- EventLogPermissionAttribute.cs
- HMACSHA384.cs
- CodePageUtils.cs
- UnknownBitmapEncoder.cs
- CombinedGeometry.cs
- DeriveBytes.cs
- SpeechRecognizer.cs
- Border.cs
- hebrewshape.cs
- TransactionScopeDesigner.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- CngProperty.cs
- HealthMonitoringSection.cs
- IBuiltInEvidence.cs
- ResumeStoryboard.cs
- TreeViewHitTestInfo.cs
- AdPostCacheSubstitution.cs
- coordinatorfactory.cs
- SystemParameters.cs
- WpfWebRequestHelper.cs
- DataListItem.cs
- ChannelSinkStacks.cs
- EntityDataSourceWrapper.cs
- RectangleConverter.cs
- AttachedPropertyBrowsableAttribute.cs
- TreeChangeInfo.cs
- ModuleBuilderData.cs
- PeerEndPoint.cs
- TextParaLineResult.cs
- NotSupportedException.cs
- MarkupExtensionReturnTypeAttribute.cs
- DataTableTypeConverter.cs
- ControlValuePropertyAttribute.cs
- RepeaterItemCollection.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlSecureResolver.cs
- StateWorkerRequest.cs
- PackageRelationship.cs
- UshortList2.cs
- Size.cs
- linebase.cs
- FactoryGenerator.cs
- EditCommandColumn.cs
- Hash.cs
- OpCopier.cs
- _MultipleConnectAsync.cs
- MimeBasePart.cs
- BitmapEffectGroup.cs
- BindingCompleteEventArgs.cs
- HashHelper.cs
- SiteOfOriginPart.cs
- TemplateControl.cs
- SqlProcedureAttribute.cs
- MetabaseReader.cs
- nulltextnavigator.cs
- SecurityMessageProperty.cs
- CircleHotSpot.cs
- EventToken.cs
- DefaultProxySection.cs
- _ProxyChain.cs
- PrePostDescendentsWalker.cs
- hwndwrapper.cs
- PeerNameRecordCollection.cs
- Clipboard.cs
- StrokeNodeOperations.cs
- OperationResponse.cs
- HatchBrush.cs
- BinaryParser.cs
- Pair.cs
- ReadOnlyCollectionBase.cs
- wgx_render.cs
- ApplicationManager.cs
- XmlWrappingWriter.cs
- CustomTrackingQuery.cs