Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------- // 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
- SqlDuplicator.cs
- Calendar.cs
- ILGenerator.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- XmlComment.cs
- MenuBase.cs
- ServiceInfo.cs
- StylusPointPropertyInfo.cs
- InteropBitmapSource.cs
- NotImplementedException.cs
- TextModifier.cs
- LinkDescriptor.cs
- OledbConnectionStringbuilder.cs
- ServiceOperation.cs
- PageVisual.cs
- SelectionEditingBehavior.cs
- MenuItemCollection.cs
- PcmConverter.cs
- WebPartDescriptionCollection.cs
- SecurityHelper.cs
- Journaling.cs
- ToolStripOverflowButton.cs
- IOException.cs
- FamilyCollection.cs
- SamlAuthorityBinding.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- TypeInitializationException.cs
- MouseEvent.cs
- ellipse.cs
- FilterUserControlBase.cs
- ObjectPersistData.cs
- ExpressionTextBox.xaml.cs
- MappingException.cs
- ListInitExpression.cs
- TableParaClient.cs
- ListSortDescription.cs
- Property.cs
- unsafenativemethodstextservices.cs
- XmlHierarchyData.cs
- DesignOnlyAttribute.cs
- DiagnosticStrings.cs
- StateDesigner.LayoutSelectionGlyph.cs
- RegisteredHiddenField.cs
- WorkflowInstance.cs
- ReadOnlyMetadataCollection.cs
- ToolStripContentPanelRenderEventArgs.cs
- XmlSchemaNotation.cs
- AssociatedControlConverter.cs
- EpmContentDeSerializerBase.cs
- CultureInfoConverter.cs
- SecurityUtils.cs
- SchemaNotation.cs
- GeneralTransform.cs
- Visual3DCollection.cs
- XmlNodeList.cs
- ResourceContainer.cs
- WebControlsSection.cs
- APCustomTypeDescriptor.cs
- XmlEnumAttribute.cs
- SqlUserDefinedAggregateAttribute.cs
- DataGridCommandEventArgs.cs
- TypeDescriptor.cs
- HMACSHA384.cs
- PagerSettings.cs
- cryptoapiTransform.cs
- AudioStateChangedEventArgs.cs
- CredentialSelector.cs
- WmfPlaceableFileHeader.cs
- AssemblyCacheEntry.cs
- HuffCodec.cs
- SQLChars.cs
- Int32Animation.cs
- PropagatorResult.cs
- AssemblyHash.cs
- Compress.cs
- CharConverter.cs
- WebPartDisplayMode.cs
- GridViewRowEventArgs.cs
- GlobalizationAssembly.cs
- _LocalDataStoreMgr.cs
- DesignerSelectionListAdapter.cs
- Models.cs
- ISessionStateStore.cs
- TablePatternIdentifiers.cs
- DataServiceQueryProvider.cs
- StringUtil.cs
- BamlLocalizationDictionary.cs
- PointConverter.cs
- EdmToObjectNamespaceMap.cs
- SspiWrapper.cs
- PageThemeCodeDomTreeGenerator.cs
- DependencyPropertyChangedEventArgs.cs
- MarginsConverter.cs
- CompilerState.cs
- ExpressionBindingCollection.cs
- HotSpot.cs
- CompilerTypeWithParams.cs
- TextDecorationCollectionConverter.cs
- Socket.cs
- TransformFinalBlockRequest.cs