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
- ClientFormsIdentity.cs
- MulticastIPAddressInformationCollection.cs
- TreeViewImageGenerator.cs
- SafeNativeMethods.cs
- BuildProvidersCompiler.cs
- ObjectDisposedException.cs
- CharacterString.cs
- SmiContext.cs
- DataGridViewAccessibleObject.cs
- ListenerElementsCollection.cs
- QueryContinueDragEvent.cs
- Attributes.cs
- CellTreeSimplifier.cs
- EntityTypeBase.cs
- HMACSHA384.cs
- Permission.cs
- ImageUrlEditor.cs
- StringWriter.cs
- PersonalizationState.cs
- Int16AnimationBase.cs
- ProgressPage.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- AnnotationHighlightLayer.cs
- BaseServiceProvider.cs
- oledbmetadatacollectionnames.cs
- _ContextAwareResult.cs
- QilInvoke.cs
- StringStorage.cs
- FontFamilyConverter.cs
- HttpHandler.cs
- ExtendedTransformFactory.cs
- MsmqDecodeHelper.cs
- HelpEvent.cs
- InvalidDataException.cs
- InternalCache.cs
- EtwTrace.cs
- EntityModelSchemaGenerator.cs
- FieldCollectionEditor.cs
- ControlBindingsCollection.cs
- DbMetaDataCollectionNames.cs
- WhitespaceRuleReader.cs
- BitStack.cs
- LambdaCompiler.Logical.cs
- ProcessProtocolHandler.cs
- SyndicationFeedFormatter.cs
- DataObjectPastingEventArgs.cs
- Hyperlink.cs
- TemplateParser.cs
- returneventsaver.cs
- DataGridViewCellMouseEventArgs.cs
- RNGCryptoServiceProvider.cs
- InstanceValue.cs
- CaseStatementProjectedSlot.cs
- FormViewRow.cs
- RuntimeIdentifierPropertyAttribute.cs
- MessageSecurityException.cs
- AutomationEvent.cs
- EventHandlersStore.cs
- Model3DGroup.cs
- ObfuscateAssemblyAttribute.cs
- HtmlInputPassword.cs
- EntityViewContainer.cs
- StateBag.cs
- ControlCachePolicy.cs
- EditBehavior.cs
- _PooledStream.cs
- CodeGeneratorAttribute.cs
- DataBoundControl.cs
- SiteMapPath.cs
- BCryptSafeHandles.cs
- MediaContextNotificationWindow.cs
- ByteArrayHelperWithString.cs
- odbcmetadatacolumnnames.cs
- TreeViewBindingsEditor.cs
- PopupControlService.cs
- ProcessHostServerConfig.cs
- MsmqAppDomainProtocolHandler.cs
- TraceLog.cs
- ReflectionUtil.cs
- BCLDebug.cs
- BaseServiceProvider.cs
- SelectionUIHandler.cs
- XmlCDATASection.cs
- SignatureToken.cs
- DrawingDrawingContext.cs
- EmptyEnumerator.cs
- SelectionChangedEventArgs.cs
- AppDomainUnloadedException.cs
- DataContractJsonSerializer.cs
- WSFederationHttpSecurityMode.cs
- ValuePattern.cs
- Native.cs
- SharedStatics.cs
- DefaultHttpHandler.cs
- EntityTypeEmitter.cs
- DBConnection.cs
- HandlerWithFactory.cs
- ProxyHelper.cs
- CookielessHelper.cs
- LongTypeConverter.cs