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
- FileResponseElement.cs
- Expr.cs
- BaseProcessor.cs
- XmlRawWriterWrapper.cs
- XmlNodeReader.cs
- ColorTransform.cs
- DataServiceConfiguration.cs
- TextProperties.cs
- InputMethodStateTypeInfo.cs
- PropertyIDSet.cs
- ToolStripDesignerAvailabilityAttribute.cs
- InstanceBehavior.cs
- RichTextBox.cs
- PeerName.cs
- Label.cs
- VirtualDirectoryMapping.cs
- SponsorHelper.cs
- CacheSection.cs
- PolyLineSegment.cs
- securitycriticaldata.cs
- PointAnimationClockResource.cs
- PlaceHolder.cs
- ListBindingConverter.cs
- ResourceIDHelper.cs
- OutputBuffer.cs
- HtmlInputPassword.cs
- InputScopeConverter.cs
- ColorPalette.cs
- DataGridPageChangedEventArgs.cs
- HtmlTextViewAdapter.cs
- LinqDataSourceContextEventArgs.cs
- DNS.cs
- Point3DIndependentAnimationStorage.cs
- WebPartConnectionsCloseVerb.cs
- IsolatedStorageException.cs
- DictionaryEntry.cs
- SR.cs
- SecuritySessionFilter.cs
- QuotedPrintableStream.cs
- ApplicationTrust.cs
- FontWeight.cs
- HttpApplication.cs
- PropertyMap.cs
- QueryContinueDragEvent.cs
- OleDbPropertySetGuid.cs
- XmlSchemaIdentityConstraint.cs
- xmlNames.cs
- ListArgumentProvider.cs
- XmlWriterTraceListener.cs
- UnionQueryOperator.cs
- Header.cs
- SchemaCollectionCompiler.cs
- TrackingMemoryStream.cs
- WindowsGraphics.cs
- ArrangedElement.cs
- TagMapCollection.cs
- XamlDesignerSerializationManager.cs
- ActiveDocumentEvent.cs
- BaseAddressElement.cs
- CodePageUtils.cs
- ToolTipService.cs
- GridViewDeleteEventArgs.cs
- iisPickupDirectory.cs
- VirtualizingPanel.cs
- WeakReference.cs
- QueryableFilterRepeater.cs
- SettingsPropertyWrongTypeException.cs
- XmlILTrace.cs
- WindowsProgressbar.cs
- _LocalDataStoreMgr.cs
- SQLDateTime.cs
- SymbolEqualComparer.cs
- TextRangeEdit.cs
- ControlPaint.cs
- XmlSchemaGroupRef.cs
- PropertyDescriptorGridEntry.cs
- SqlDataRecord.cs
- HtmlInputReset.cs
- MDIWindowDialog.cs
- ControlUtil.cs
- CacheMemory.cs
- TextBounds.cs
- SimpleApplicationHost.cs
- ToolBarPanel.cs
- GetPageCompletedEventArgs.cs
- HostedHttpRequestAsyncResult.cs
- DispatcherExceptionFilterEventArgs.cs
- DataGridBoolColumn.cs
- Button.cs
- BufferedGraphics.cs
- DataChangedEventManager.cs
- Grammar.cs
- HostedHttpTransportManager.cs
- Timer.cs
- ExtentKey.cs
- ComponentManagerBroker.cs
- CodeIdentifiers.cs
- ScriptingJsonSerializationSection.cs
- HwndTarget.cs
- ProviderCommandInfoUtils.cs