Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / View / WaitingCursor.cs / 1305376 / WaitingCursor.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.View { using System.Windows.Input; using System.Windows; using System.Runtime; internal class WaitingCursor : IDisposable { Cursor originalCursor; FrameworkElement owner; public WaitingCursor(FrameworkElement element) { Fx.Assert(element != null, "Owner of WaitingCursor cannot be null"); this.originalCursor = element.Cursor; this.owner = element; element.Cursor = Cursors.Wait; } public void Dispose() { this.owner.Cursor = originalCursor; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- UniqueConstraint.cs
- ExpressionValueEditor.cs
- UnescapedXmlDiagnosticData.cs
- XmlTextEncoder.cs
- RegexParser.cs
- ZipIOLocalFileDataDescriptor.cs
- Comparer.cs
- ApplicationId.cs
- RegistrySecurity.cs
- EntityContainerRelationshipSet.cs
- QuaternionAnimationBase.cs
- CreateParams.cs
- Rule.cs
- AlphaSortedEnumConverter.cs
- RequestValidator.cs
- TimeoutValidationAttribute.cs
- ParameterReplacerVisitor.cs
- BlurBitmapEffect.cs
- AmbientLight.cs
- ErrorProvider.cs
- TagMapInfo.cs
- MarshalDirectiveException.cs
- ResourceReferenceExpressionConverter.cs
- CatalogZoneBase.cs
- BufferedGraphicsManager.cs
- ObjectDataSourceEventArgs.cs
- TriggerActionCollection.cs
- TypeToArgumentTypeConverter.cs
- IncomingWebResponseContext.cs
- PerformanceCounterPermissionAttribute.cs
- DefaultTextStoreTextComposition.cs
- FixedTextView.cs
- PagePropertiesChangingEventArgs.cs
- DataGridViewCellStateChangedEventArgs.cs
- NamespaceEmitter.cs
- HtmlTextViewAdapter.cs
- ComponentConverter.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- BufferedStream.cs
- Win32.cs
- RequestQueue.cs
- SchemaImporterExtension.cs
- XmlMemberMapping.cs
- HttpListenerContext.cs
- ExternalFile.cs
- DesignerActionKeyboardBehavior.cs
- InfoCardMasterKey.cs
- MembershipValidatePasswordEventArgs.cs
- ToolStripSeparatorRenderEventArgs.cs
- ConfigurationFileMap.cs
- ReadOnlyHierarchicalDataSource.cs
- ConfigXmlAttribute.cs
- DbDataAdapter.cs
- MediaPlayer.cs
- PropertyDescriptor.cs
- WindowsAuthenticationModule.cs
- Vector3DValueSerializer.cs
- IsolatedStorageException.cs
- FontFamily.cs
- SqlDependencyListener.cs
- PathNode.cs
- DocumentXPathNavigator.cs
- ValuePatternIdentifiers.cs
- TableProvider.cs
- DeflateEmulationStream.cs
- XmlSchemaInfo.cs
- MeasurementDCInfo.cs
- UIElementPropertyUndoUnit.cs
- EncodingInfo.cs
- CDSCollectionETWBCLProvider.cs
- AssemblyAttributesGoHere.cs
- ActivationArguments.cs
- UnmanagedBitmapWrapper.cs
- ListViewAutomationPeer.cs
- XsltContext.cs
- MouseGestureConverter.cs
- ToolStripOverflow.cs
- X500Name.cs
- Models.cs
- CachedCompositeFamily.cs
- SafeNativeMethods.cs
- UpdateCompiler.cs
- SR.cs
- XamlTypeMapper.cs
- DataGridViewSelectedCellCollection.cs
- dataSvcMapFileLoader.cs
- StorageScalarPropertyMapping.cs
- FormatPage.cs
- Content.cs
- StringConverter.cs
- ProviderConnectionPointCollection.cs
- FrameworkContentElementAutomationPeer.cs
- DoubleAnimationBase.cs
- Rule.cs
- IssuedTokenClientCredential.cs
- InkCollectionBehavior.cs
- StatusCommandUI.cs
- FontUnit.cs
- InputLanguage.cs
- Resources.Designer.cs