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
- LinqDataSourceHelper.cs
- ResourceDescriptionAttribute.cs
- Renderer.cs
- DeviceSpecific.cs
- ColumnTypeConverter.cs
- SpoolingTask.cs
- WsatServiceAddress.cs
- FlowThrottle.cs
- SortExpressionBuilder.cs
- NameSpaceExtractor.cs
- ContextToken.cs
- RecordConverter.cs
- ExpressionTextBox.xaml.cs
- ContentIterators.cs
- HtmlSelect.cs
- ConnectionStringSettingsCollection.cs
- IApplicationTrustManager.cs
- odbcmetadatafactory.cs
- ModifierKeysValueSerializer.cs
- SinglePageViewer.cs
- PackageStore.cs
- XamlSerializationHelper.cs
- OleDbReferenceCollection.cs
- QueryParameter.cs
- WebControlsSection.cs
- SettingsBase.cs
- GetPageNumberCompletedEventArgs.cs
- DataStorage.cs
- HasCopySemanticsAttribute.cs
- DropShadowEffect.cs
- UpDownBaseDesigner.cs
- FilteredXmlReader.cs
- ReadOnlyKeyedCollection.cs
- ConnectionManagementElement.cs
- RichTextBoxAutomationPeer.cs
- CollectionViewProxy.cs
- HtmlTableRow.cs
- UserPreferenceChangedEventArgs.cs
- IEnumerable.cs
- TrackingAnnotationCollection.cs
- AdornedElementPlaceholder.cs
- JavaScriptSerializer.cs
- LinearGradientBrush.cs
- XappLauncher.cs
- PackagingUtilities.cs
- TypeConverters.cs
- DoubleAnimationClockResource.cs
- Encoder.cs
- BoolExpression.cs
- HwndStylusInputProvider.cs
- MailDefinitionBodyFileNameEditor.cs
- SignedXml.cs
- ResourcePool.cs
- AddInController.cs
- FontStyle.cs
- BulletedList.cs
- CommunicationObjectAbortedException.cs
- QueryResponse.cs
- UpdatePanelControlTrigger.cs
- OutputCacheProfile.cs
- TemplateAction.cs
- TreeView.cs
- ClientSideProviderDescription.cs
- OleDbConnection.cs
- UnsafeNativeMethods.cs
- AuthorizationSection.cs
- AttributeUsageAttribute.cs
- TraceContextRecord.cs
- X509Utils.cs
- Root.cs
- AddToCollection.cs
- WindowsGraphicsWrapper.cs
- RectIndependentAnimationStorage.cs
- Base64Stream.cs
- DataGridViewCellValidatingEventArgs.cs
- ConnectionStringsSection.cs
- BitmapDecoder.cs
- Vector3DAnimationUsingKeyFrames.cs
- AttributeProviderAttribute.cs
- NodeInfo.cs
- InitializingNewItemEventArgs.cs
- OperationAbortedException.cs
- ItemContainerPattern.cs
- UdpTransportBindingElement.cs
- TextReader.cs
- SHA256Managed.cs
- XhtmlTextWriter.cs
- HttpRequestCacheValidator.cs
- DataGridViewCellStyle.cs
- ThemeableAttribute.cs
- ScrollProviderWrapper.cs
- ErrorHandlerModule.cs
- OneOfElement.cs
- PageContent.cs
- BuildDependencySet.cs
- TypedAsyncResult.cs
- PageVisual.cs
- ThreadAttributes.cs
- Viewport3DVisual.cs
- SelectedDatesCollection.cs