Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- SamlAuthorityBinding.cs
- dbenumerator.cs
- UserControl.cs
- VersionPair.cs
- Atom10FormatterFactory.cs
- SerializationAttributes.cs
- RemoteWebConfigurationHostServer.cs
- LogWriteRestartAreaAsyncResult.cs
- ShaderRenderModeValidation.cs
- ProgressBarRenderer.cs
- CopyAttributesAction.cs
- XamlParser.cs
- ByteStorage.cs
- ToolStripPanelRenderEventArgs.cs
- CommandTreeTypeHelper.cs
- XslCompiledTransform.cs
- BindingFormattingDialog.cs
- EnumBuilder.cs
- _ContextAwareResult.cs
- XmlDataSourceNodeDescriptor.cs
- SqlMethods.cs
- KoreanLunisolarCalendar.cs
- Int32Rect.cs
- PersonalizationProvider.cs
- CompareInfo.cs
- ExternalFile.cs
- ContextProperty.cs
- ResXDataNode.cs
- SerializationAttributes.cs
- TimelineGroup.cs
- SqlPersonalizationProvider.cs
- SelectorItemAutomationPeer.cs
- metrodevice.cs
- XPathItem.cs
- _AutoWebProxyScriptHelper.cs
- CommandHelpers.cs
- LogRestartAreaEnumerator.cs
- DaylightTime.cs
- ToolZone.cs
- MonthChangedEventArgs.cs
- QueryInterceptorAttribute.cs
- CanonicalFontFamilyReference.cs
- HttpHandlerActionCollection.cs
- Rfc4050KeyFormatter.cs
- DataControlFieldCollection.cs
- GroupItem.cs
- CodeVariableDeclarationStatement.cs
- ImageClickEventArgs.cs
- _KerberosClient.cs
- XpsFilter.cs
- ReceiveActivity.cs
- DesignTimeXamlWriter.cs
- X509Certificate.cs
- HttpClientProtocol.cs
- HandlerWithFactory.cs
- TableLayoutStyleCollection.cs
- ColumnMapProcessor.cs
- CurrentTimeZone.cs
- ConfigPathUtility.cs
- PersonalizationState.cs
- WebScriptEnablingBehavior.cs
- DiagnosticTrace.cs
- Deserializer.cs
- EntityType.cs
- StorageSetMapping.cs
- PerformanceCountersElement.cs
- XmlNodeComparer.cs
- MimeTypeAttribute.cs
- TypeForwardedToAttribute.cs
- OneToOneMappingSerializer.cs
- PowerStatus.cs
- XmlBufferReader.cs
- CalendarDataBindingHandler.cs
- DataTableReader.cs
- PointValueSerializer.cs
- ImageDrawing.cs
- SystemUnicastIPAddressInformation.cs
- HealthMonitoringSectionHelper.cs
- DataGridViewCheckBoxCell.cs
- AutoGeneratedField.cs
- GACMembershipCondition.cs
- WindowsRichEdit.cs
- UserThread.cs
- QueryModel.cs
- COM2ExtendedBrowsingHandler.cs
- TraceRecords.cs
- NetworkCredential.cs
- MultiTrigger.cs
- TemplateInstanceAttribute.cs
- ToolStripPanel.cs
- ThreadStaticAttribute.cs
- SmiContextFactory.cs
- TableLayoutPanel.cs
- KeyValueInternalCollection.cs
- FormViewUpdatedEventArgs.cs
- OneToOneMappingSerializer.cs
- AnnotationResourceCollection.cs
- EventBuilder.cs
- IPipelineRuntime.cs
- XmlAnyAttributeAttribute.cs