Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / MS / Internal / LoadedOrUnloadedOperation.cs / 1305600 / LoadedOrUnloadedOperation.cs
//------------------------------------------------------------------------------ // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // Description: // A pending loaded or unloaded operation, to be run by the MediaContext. // //----------------------------------------------------------------------------- using System; using System.Diagnostics; // Debug.Assert using System.Windows; // DependencyObject using System.Windows.Threading; // DispatcherOperationCallback using MS.Internal.PresentationCore; // [FriendAccessAllowed] namespace MS.Internal { [FriendAccessAllowed] // Built into Core, also used by Framework. internal class LoadedOrUnloadedOperation { internal LoadedOrUnloadedOperation( DispatcherOperationCallback callback, DependencyObject target) { Debug.Assert(callback != null && target != null); _callback = callback; _target = target; } internal void DoWork() { if (!_cancelled) { _callback(_target); } } internal void Cancel() { _cancelled = true; } private DispatcherOperationCallback _callback; private DependencyObject _target; private bool _cancelled; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DocumentViewerBase.cs
- _IPv4Address.cs
- GeometryHitTestResult.cs
- PathFigureCollectionConverter.cs
- DataGridPagerStyle.cs
- Compiler.cs
- Config.cs
- TypefaceCollection.cs
- RpcAsyncResult.cs
- ScriptResourceInfo.cs
- AuthenticationModulesSection.cs
- BoolExpressionVisitors.cs
- BrowserCapabilitiesFactoryBase.cs
- Unit.cs
- PassportAuthentication.cs
- Viewport2DVisual3D.cs
- ImpersonateTokenRef.cs
- AnnotationAdorner.cs
- MulticastIPAddressInformationCollection.cs
- OdbcParameter.cs
- SmiRecordBuffer.cs
- URLMembershipCondition.cs
- ProxyManager.cs
- ClipboardData.cs
- TypefaceMetricsCache.cs
- PkcsMisc.cs
- DataGridViewRowCancelEventArgs.cs
- GridEntry.cs
- XsltLibrary.cs
- NativeMethods.cs
- MemberCollection.cs
- NonBatchDirectoryCompiler.cs
- webproxy.cs
- HashHelper.cs
- MetaDataInfo.cs
- HtmlInputCheckBox.cs
- CryptoApi.cs
- TextRangeEditTables.cs
- WindowsFormsHost.cs
- ReadOnlyCollectionBase.cs
- DataGridViewSelectedCellCollection.cs
- updateconfighost.cs
- PngBitmapDecoder.cs
- XmlCharCheckingWriter.cs
- ToolStripHighContrastRenderer.cs
- SessionSwitchEventArgs.cs
- SignedInfo.cs
- ProcessRequestAsyncResult.cs
- WebService.cs
- ValueHandle.cs
- IgnorePropertiesAttribute.cs
- ComplexBindingPropertiesAttribute.cs
- RelationshipManager.cs
- AppDomainProtocolHandler.cs
- StrokeSerializer.cs
- MenuEventArgs.cs
- CompilationRelaxations.cs
- XmlSchemaRedefine.cs
- CompatibleComparer.cs
- EventSourceCreationData.cs
- LookupNode.cs
- EventLogStatus.cs
- XmlSchemaIdentityConstraint.cs
- CompiledXpathExpr.cs
- StatusBarAutomationPeer.cs
- SharedDp.cs
- XmlSchemaImporter.cs
- SendKeys.cs
- RandomNumberGenerator.cs
- LoginView.cs
- DiscoveryClientReferences.cs
- Menu.cs
- DataGridViewCellLinkedList.cs
- UIElementPropertyUndoUnit.cs
- CornerRadiusConverter.cs
- HTTPRemotingHandler.cs
- BindingExpressionBase.cs
- DWriteFactory.cs
- IsolatedStorageFilePermission.cs
- CodeAssignStatement.cs
- FileEnumerator.cs
- Facet.cs
- FileLogRecordStream.cs
- EventSinkHelperWriter.cs
- ConditionBrowserDialog.cs
- WorkflowServiceBehavior.cs
- LineInfo.cs
- Maps.cs
- ProgressBar.cs
- ProfessionalColors.cs
- StatusBarPanelClickEvent.cs
- ProfilePropertySettingsCollection.cs
- HttpFileCollection.cs
- RelationshipManager.cs
- PolyLineSegmentFigureLogic.cs
- DataKeyCollection.cs
- WebBrowserUriTypeConverter.cs
- ElementAction.cs
- AnnotationHelper.cs
- Helpers.cs