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
- ComponentEditorForm.cs
- NeutralResourcesLanguageAttribute.cs
- Vector.cs
- EventHandlingScope.cs
- RootBrowserWindowAutomationPeer.cs
- Binding.cs
- DataGridViewCellEventArgs.cs
- OuterGlowBitmapEffect.cs
- JsonFaultDetail.cs
- FormatSettings.cs
- SqlCacheDependencySection.cs
- NonBatchDirectoryCompiler.cs
- NavigatorOutput.cs
- SystemFonts.cs
- PrimitiveXmlSerializers.cs
- QueryableFilterRepeater.cs
- LocationReference.cs
- QilXmlWriter.cs
- Repeater.cs
- XsltArgumentList.cs
- DataGridHelper.cs
- TextOnlyOutput.cs
- HyperLinkColumn.cs
- BinaryNode.cs
- BufferedGraphicsContext.cs
- COM2Properties.cs
- ListenerElementsCollection.cs
- Padding.cs
- WindowPattern.cs
- RegexCaptureCollection.cs
- Slider.cs
- DateTimeOffset.cs
- _SSPIWrapper.cs
- ResourceAssociationSetEnd.cs
- XmlSchemaExporter.cs
- ListViewInsertEventArgs.cs
- CodeVariableReferenceExpression.cs
- ChannelServices.cs
- PriorityQueue.cs
- NodeLabelEditEvent.cs
- TextRunCache.cs
- WSFederationHttpSecurity.cs
- VirtualizingPanel.cs
- TraceHwndHost.cs
- WinFormsComponentEditor.cs
- ThousandthOfEmRealDoubles.cs
- DataBoundControlAdapter.cs
- MessageQueueKey.cs
- followingsibling.cs
- streamingZipPartStream.cs
- IResourceProvider.cs
- SwitchCase.cs
- DisplayNameAttribute.cs
- DesignerVerbCollection.cs
- AssemblyResourceLoader.cs
- MenuTracker.cs
- PolicyStatement.cs
- UnaryExpression.cs
- HwndSource.cs
- OneToOneMappingSerializer.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- _SpnDictionary.cs
- DummyDataSource.cs
- SQLDecimal.cs
- SQLGuid.cs
- ChtmlSelectionListAdapter.cs
- XmlAggregates.cs
- CodeIterationStatement.cs
- BinaryOperationBinder.cs
- JournalEntryStack.cs
- FontCollection.cs
- ProcessThreadCollection.cs
- ToolStripDropDownButton.cs
- SystemColorTracker.cs
- XmlILIndex.cs
- EditorPartChrome.cs
- MergeLocalizationDirectives.cs
- VerificationAttribute.cs
- DebugHandleTracker.cs
- SqlLiftWhereClauses.cs
- CommandBindingCollection.cs
- CanExecuteRoutedEventArgs.cs
- PropertyConverter.cs
- RuleSettingsCollection.cs
- TreeViewItemAutomationPeer.cs
- Literal.cs
- BuildResult.cs
- CodeArrayCreateExpression.cs
- UriScheme.cs
- XmlAttributeCache.cs
- EventProperty.cs
- AccessDataSourceView.cs
- SqlDependencyListener.cs
- WindowsNonControl.cs
- SafeNativeMethods.cs
- GridView.cs
- EntitySqlQueryCacheEntry.cs
- CodeSnippetCompileUnit.cs
- XmlIgnoreAttribute.cs
- DataGridHeaderBorder.cs