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
- OleDbInfoMessageEvent.cs
- _AuthenticationState.cs
- DataGridViewColumnStateChangedEventArgs.cs
- httpserverutility.cs
- CallbackValidatorAttribute.cs
- ViewGenerator.cs
- DbProviderManifest.cs
- NotCondition.cs
- ServerType.cs
- ObjectSet.cs
- TextCompositionEventArgs.cs
- ScriptIgnoreAttribute.cs
- CodeDomSerializer.cs
- ContainerActivationHelper.cs
- SchemeSettingElementCollection.cs
- RenderCapability.cs
- XmlILTrace.cs
- SwitchAttribute.cs
- GifBitmapEncoder.cs
- FixedSOMImage.cs
- CurrentTimeZone.cs
- ResourceAttributes.cs
- DropShadowEffect.cs
- KnownTypes.cs
- MultiBindingExpression.cs
- XmlAnyElementAttribute.cs
- ToolStripPanel.cs
- Int32.cs
- FixUp.cs
- BlockingCollection.cs
- PackUriHelper.cs
- StylusButtonEventArgs.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- FilteredAttributeCollection.cs
- ChameleonKey.cs
- _NegoState.cs
- AggregateException.cs
- InvalidCastException.cs
- JoinTreeNode.cs
- CodeMemberField.cs
- TemplateControlBuildProvider.cs
- LocatorManager.cs
- LifetimeServices.cs
- EventPrivateKey.cs
- EdmProviderManifest.cs
- FileDialogPermission.cs
- PageSetupDialog.cs
- AudioBase.cs
- RepeaterItemCollection.cs
- securitycriticaldataformultiplegetandset.cs
- MissingMemberException.cs
- SrgsElementList.cs
- EndSelectCardRequest.cs
- ScrollProperties.cs
- EmissiveMaterial.cs
- LinqDataSourceUpdateEventArgs.cs
- AutoGeneratedFieldProperties.cs
- DBSchemaRow.cs
- ITextView.cs
- ArrayElementGridEntry.cs
- VirtualizingStackPanel.cs
- DecoderReplacementFallback.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- MinimizableAttributeTypeConverter.cs
- FileSystemInfo.cs
- LocatorGroup.cs
- CallbackDebugElement.cs
- HttpWriter.cs
- ReadContentAsBinaryHelper.cs
- NonParentingControl.cs
- CodeIdentifier.cs
- XpsImage.cs
- ComponentChangingEvent.cs
- CapacityStreamGeometryContext.cs
- FontStretches.cs
- ActiveXSerializer.cs
- BaseDataList.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- HeaderedItemsControl.cs
- ApplyTemplatesAction.cs
- LocalIdCollection.cs
- Descriptor.cs
- UnsettableComboBox.cs
- WebPartsSection.cs
- XmlHierarchyData.cs
- ContractDescription.cs
- AnimatedTypeHelpers.cs
- RouteValueDictionary.cs
- XmlWriter.cs
- SQLByte.cs
- FrameworkElementFactoryMarkupObject.cs
- ITreeGenerator.cs
- DayRenderEvent.cs
- ProjectionPruner.cs
- ReceiveErrorHandling.cs
- BitmapEffectInput.cs
- AccessedThroughPropertyAttribute.cs
- ClosableStream.cs
- AsnEncodedData.cs
- TimeoutValidationAttribute.cs