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
- EncoderParameters.cs
- DispatcherObject.cs
- MultidimensionalArrayItemReference.cs
- ClientScriptManager.cs
- BufferedStream.cs
- TemplateContainer.cs
- XmlSchemaSimpleType.cs
- CleanUpVirtualizedItemEventArgs.cs
- IPipelineRuntime.cs
- PackWebRequestFactory.cs
- DSACryptoServiceProvider.cs
- InkCanvasAutomationPeer.cs
- ColorInterpolationModeValidation.cs
- Hashtable.cs
- Common.cs
- UpdateTracker.cs
- InstanceView.cs
- activationcontext.cs
- SecurityRuntime.cs
- AutomationEventArgs.cs
- GradientBrush.cs
- EventBuilder.cs
- PageThemeParser.cs
- CodeSnippetTypeMember.cs
- PathFigure.cs
- CommandConverter.cs
- WindowPattern.cs
- InputLanguageProfileNotifySink.cs
- LongValidator.cs
- LogReservationCollection.cs
- MonthCalendar.cs
- RuntimeConfig.cs
- XslCompiledTransform.cs
- TableLayoutPanelCodeDomSerializer.cs
- Application.cs
- ExpressionTextBox.xaml.cs
- util.cs
- WebPartsPersonalization.cs
- ClientTarget.cs
- Pen.cs
- ListItemCollection.cs
- GreenMethods.cs
- FixedSOMTableRow.cs
- CreatingCookieEventArgs.cs
- SaveFileDialog.cs
- APCustomTypeDescriptor.cs
- GPPOINT.cs
- HyperLinkField.cs
- TypeUtil.cs
- SizeAnimationBase.cs
- DocumentPage.cs
- HtmlImage.cs
- PropertyEntry.cs
- DataGridViewComboBoxColumn.cs
- Viewport3DAutomationPeer.cs
- StreamResourceInfo.cs
- BitmapEffectGeneralTransform.cs
- Expression.cs
- HttpGetProtocolReflector.cs
- ImageMap.cs
- RegexCompilationInfo.cs
- DefaultExpressionVisitor.cs
- Process.cs
- HtmlTextBoxAdapter.cs
- ReadWriteObjectLock.cs
- DatasetMethodGenerator.cs
- TableItemPattern.cs
- TrueReadOnlyCollection.cs
- InvalidOleVariantTypeException.cs
- ReadOnlyPermissionSet.cs
- Panel.cs
- DbException.cs
- AnimatedTypeHelpers.cs
- ListGeneralPage.cs
- UIAgentAsyncBeginRequest.cs
- TypeExtensions.cs
- OuterProxyWrapper.cs
- MessageQueueInstaller.cs
- OpenTypeLayoutCache.cs
- FlowDocument.cs
- KnownBoxes.cs
- UrlMappingCollection.cs
- WindowsTab.cs
- WebServiceReceive.cs
- ThreadInterruptedException.cs
- _emptywebproxy.cs
- GridViewUpdatedEventArgs.cs
- FreezableOperations.cs
- StreamProxy.cs
- FileVersionInfo.cs
- XmlWellformedWriterHelpers.cs
- ZoneMembershipCondition.cs
- VersionValidator.cs
- PropertiesTab.cs
- DependencyObjectValidator.cs
- DbConnectionStringBuilder.cs
- ProfileEventArgs.cs
- OleDbFactory.cs
- XmlTypeAttribute.cs
- ToolboxDataAttribute.cs