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
- PropertyMapper.cs
- GridItemPatternIdentifiers.cs
- IOThreadScheduler.cs
- WmpBitmapEncoder.cs
- PeerNameRegistration.cs
- UxThemeWrapper.cs
- SourceItem.cs
- AsynchronousChannelMergeEnumerator.cs
- TracePayload.cs
- DebugHandleTracker.cs
- NetSectionGroup.cs
- SingleObjectCollection.cs
- SerializationInfo.cs
- ByteAnimation.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- OptionalColumn.cs
- ObjectQueryExecutionPlan.cs
- PeerOutputChannel.cs
- ControlTemplate.cs
- SoapAttributes.cs
- DataStorage.cs
- SynchronizationLockException.cs
- DoubleCollectionValueSerializer.cs
- ObjectPersistData.cs
- DataBindingCollection.cs
- Typography.cs
- GenericRootAutomationPeer.cs
- WriteTimeStream.cs
- ToolStripSplitButton.cs
- RelationshipNavigation.cs
- MediaElementAutomationPeer.cs
- WaveHeader.cs
- DesignTimeTemplateParser.cs
- ConstraintStruct.cs
- InvalidFilterCriteriaException.cs
- ServiceDiscoveryElement.cs
- ServicesSection.cs
- FlowchartSizeFeature.cs
- SafeNativeMethods.cs
- OutputCacheProfile.cs
- PreDigestedSignedInfo.cs
- FormsAuthenticationUserCollection.cs
- MgmtConfigurationRecord.cs
- Vector.cs
- HttpProfileGroupBase.cs
- SourceInterpreter.cs
- ScriptMethodAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- METAHEADER.cs
- DoubleAnimationBase.cs
- SystemIPv6InterfaceProperties.cs
- Decoder.cs
- XmlConverter.cs
- DataGridItemCollection.cs
- PropertyPathConverter.cs
- ExceptionHandler.cs
- NavigationWindow.cs
- FrameworkElement.cs
- WindowsListViewGroupHelper.cs
- _KerberosClient.cs
- ConstructorNeedsTagAttribute.cs
- XhtmlBasicControlAdapter.cs
- SubqueryRules.cs
- ConnectionInterfaceCollection.cs
- StylesEditorDialog.cs
- ThemeableAttribute.cs
- FileIOPermission.cs
- IDispatchConstantAttribute.cs
- HttpSessionStateWrapper.cs
- SafeNativeMethods.cs
- HoistedLocals.cs
- NavigationHelper.cs
- GZipStream.cs
- WorkflowNamespace.cs
- StorageMappingFragment.cs
- CheckBox.cs
- SessionStateModule.cs
- SystemDropShadowChrome.cs
- MULTI_QI.cs
- GeometryDrawing.cs
- RouteItem.cs
- BamlTreeUpdater.cs
- AttributeExtensions.cs
- SiteMapHierarchicalDataSourceView.cs
- CodeIndexerExpression.cs
- ViewStateModeByIdAttribute.cs
- HtmlEmptyTagControlBuilder.cs
- AnimationException.cs
- XLinq.cs
- DbReferenceCollection.cs
- BitmapEffectState.cs
- WebPartHeaderCloseVerb.cs
- BitConverter.cs
- Style.cs
- StartUpEventArgs.cs
- AspCompat.cs
- EntityReference.cs
- TypographyProperties.cs
- WorkflowQueue.cs
- TemplateField.cs