Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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 // [....]/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
- DecoderNLS.cs
- ElementMarkupObject.cs
- TraceListener.cs
- XmlSchemaCompilationSettings.cs
- WebPartConnectionsCloseVerb.cs
- StylusCollection.cs
- ByteAnimationBase.cs
- datacache.cs
- UiaCoreTypesApi.cs
- ResXResourceSet.cs
- ViewCellRelation.cs
- AssemblyInfo.cs
- ApplicationContext.cs
- ExpressionLexer.cs
- ControlDesigner.cs
- ListBoxItemWrapperAutomationPeer.cs
- XmlTextEncoder.cs
- PrefixQName.cs
- SupportsEventValidationAttribute.cs
- Ipv6Element.cs
- MimeReflector.cs
- ListViewItem.cs
- unsafenativemethodstextservices.cs
- Container.cs
- BasicExpandProvider.cs
- QilChoice.cs
- TransformedBitmap.cs
- KnownColorTable.cs
- HttpChannelListener.cs
- PointF.cs
- ConditionBrowserDialog.cs
- ScriptingProfileServiceSection.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- RenderCapability.cs
- TableParaClient.cs
- Directory.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- NoClickablePointException.cs
- MaskedTextBox.cs
- counter.cs
- ConcurrentBag.cs
- BaseWebProxyFinder.cs
- ServiceDocument.cs
- WebPartDescription.cs
- ObjectListDesigner.cs
- ToggleButtonAutomationPeer.cs
- TableHeaderCell.cs
- ScriptHandlerFactory.cs
- TransformerInfoCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- CodeVariableDeclarationStatement.cs
- FrameworkElementFactoryMarkupObject.cs
- CacheEntry.cs
- DefaultValueAttribute.cs
- IISUnsafeMethods.cs
- ExtendedPropertyCollection.cs
- HttpFileCollection.cs
- DictionaryManager.cs
- XmlSiteMapProvider.cs
- DrawingBrush.cs
- TextSpan.cs
- basenumberconverter.cs
- IChannel.cs
- DynamicPropertyReader.cs
- XamlFilter.cs
- HtmlInputButton.cs
- WorkflowRuntimeBehavior.cs
- WindowsToolbar.cs
- DataGridViewColumnConverter.cs
- unsafeIndexingFilterStream.cs
- AllMembershipCondition.cs
- TcpHostedTransportConfiguration.cs
- SoapSchemaImporter.cs
- TemplateXamlParser.cs
- ReversePositionQuery.cs
- SelfIssuedTokenFactoryCredential.cs
- WebServiceTypeData.cs
- X509SecurityToken.cs
- PackageStore.cs
- BrowserTree.cs
- RadialGradientBrush.cs
- BitmapEffectDrawing.cs
- SqlClientWrapperSmiStreamChars.cs
- IconEditor.cs
- BlobPersonalizationState.cs
- XmlQueryCardinality.cs
- ProfileModule.cs
- Trigger.cs
- NameValueConfigurationCollection.cs
- LabelExpression.cs
- PeerCollaboration.cs
- SelectionEditor.cs
- InheritanceContextChangedEventManager.cs
- COAUTHINFO.cs
- CodeIdentifiers.cs
- EventSinkActivity.cs
- _FtpControlStream.cs
- DataColumn.cs
- ToolStripItemClickedEventArgs.cs
- Inline.cs