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
- ActiveXSite.cs
- ExpressionPrefixAttribute.cs
- GatewayDefinition.cs
- ForeignConstraint.cs
- COM2ColorConverter.cs
- TableLayoutCellPaintEventArgs.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- AxisAngleRotation3D.cs
- IIS7UserPrincipal.cs
- CroppedBitmap.cs
- RelationshipEndCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- TextServicesCompartmentContext.cs
- ToolBar.cs
- DocumentAutomationPeer.cs
- loginstatus.cs
- Select.cs
- FunctionQuery.cs
- PageAdapter.cs
- TreeView.cs
- ToolStripDropDown.cs
- UnSafeCharBuffer.cs
- InvokeProviderWrapper.cs
- TransferMode.cs
- DBSchemaTable.cs
- RequestQueue.cs
- ListItem.cs
- TypeNameConverter.cs
- TrustLevelCollection.cs
- SmtpCommands.cs
- IIS7UserPrincipal.cs
- BigInt.cs
- GeometryCollection.cs
- ProfilePropertySettings.cs
- TcpConnectionPoolSettings.cs
- XmlDataLoader.cs
- RichTextBox.cs
- QueryContinueDragEventArgs.cs
- SystemEvents.cs
- CollectionBuilder.cs
- SafeReadContext.cs
- VariantWrapper.cs
- ScrollBar.cs
- EditingCoordinator.cs
- RSAOAEPKeyExchangeDeformatter.cs
- mediaclock.cs
- WaitHandleCannotBeOpenedException.cs
- UserControlCodeDomTreeGenerator.cs
- WorkflowInstanceExtensionProvider.cs
- Matrix.cs
- XmlNode.cs
- NetworkInformationPermission.cs
- ADMembershipProvider.cs
- BrowsableAttribute.cs
- OracleString.cs
- DataGridPagingPage.cs
- WindowsGraphicsCacheManager.cs
- ControlPaint.cs
- JulianCalendar.cs
- GeneralTransform3DTo2DTo3D.cs
- Merger.cs
- ToolZoneDesigner.cs
- TypeLibConverter.cs
- StructuredProperty.cs
- ProcessInfo.cs
- AttachedAnnotationChangedEventArgs.cs
- SpeechEvent.cs
- Buffer.cs
- DrawingContextDrawingContextWalker.cs
- RightsManagementInformation.cs
- TemplateXamlParser.cs
- ShaderEffect.cs
- OptimalTextSource.cs
- SystemInformation.cs
- PrinterUnitConvert.cs
- PrintDialogException.cs
- ContainerControl.cs
- WebZone.cs
- HyperLinkStyle.cs
- HtmlInputPassword.cs
- TextPointer.cs
- PlatformCulture.cs
- HwndSubclass.cs
- SqlMetaData.cs
- BrowserCapabilitiesFactoryBase.cs
- CorruptingExceptionCommon.cs
- EventOpcode.cs
- X509SecurityTokenAuthenticator.cs
- GridViewCellAutomationPeer.cs
- ConnectorDragDropGlyph.cs
- Stylesheet.cs
- HostingEnvironment.cs
- PrimitiveDataContract.cs
- ServicesExceptionNotHandledEventArgs.cs
- ActivityStateQuery.cs
- XsdCachingReader.cs
- DocumentReference.cs
- BrowserDefinitionCollection.cs
- Clock.cs
- CodeDomLocalizationProvider.cs