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
- EDesignUtil.cs
- ConfigurationSectionHelper.cs
- MessageHeaders.cs
- ProcessProtocolHandler.cs
- Visual3D.cs
- InteropBitmapSource.cs
- SlipBehavior.cs
- ExpandSegment.cs
- SafeProcessHandle.cs
- BitmapEffectRenderDataResource.cs
- UnaryNode.cs
- TypeToken.cs
- HtmlProps.cs
- OracleRowUpdatedEventArgs.cs
- DataBindEngine.cs
- CompilerScopeManager.cs
- SamlAuthorizationDecisionClaimResource.cs
- DataSourceDescriptorCollection.cs
- DataContractJsonSerializerOperationFormatter.cs
- PreviewKeyDownEventArgs.cs
- AutomationElementCollection.cs
- DocumentViewerAutomationPeer.cs
- DebugViewWriter.cs
- WindowPattern.cs
- serverconfig.cs
- Pair.cs
- Command.cs
- RNGCryptoServiceProvider.cs
- RepeatBehavior.cs
- PolicyValidationException.cs
- SQLBoolean.cs
- SuppressMergeCheckAttribute.cs
- PageRequestManager.cs
- HttpListenerException.cs
- AssemblyInfo.cs
- SQLUtility.cs
- AmbiguousMatchException.cs
- InstanceDataCollection.cs
- SimpleWebHandlerParser.cs
- TypeCollectionPropertyEditor.cs
- FactoryMaker.cs
- PopupEventArgs.cs
- MenuItem.cs
- IRCollection.cs
- NextPreviousPagerField.cs
- ItemCollection.cs
- FormViewPageEventArgs.cs
- PrefixQName.cs
- WaitHandleCannotBeOpenedException.cs
- HttpResponseInternalWrapper.cs
- Vars.cs
- BitmapEffectDrawing.cs
- MenuItemStyle.cs
- CompositionCommandSet.cs
- SchemaNamespaceManager.cs
- InputBuffer.cs
- TryCatch.cs
- ManifestSignedXml.cs
- Gdiplus.cs
- TextDecorationCollection.cs
- DataGridViewColumnEventArgs.cs
- Attachment.cs
- ValueQuery.cs
- Crypto.cs
- SpeakProgressEventArgs.cs
- PieceNameHelper.cs
- ContentElementAutomationPeer.cs
- ClientClassGenerator.cs
- MethodImplAttribute.cs
- ConfigurationElementProperty.cs
- XmlCDATASection.cs
- TreeIterator.cs
- TracedNativeMethods.cs
- SqlDataSourceCustomCommandPanel.cs
- SecurityDescriptor.cs
- RelationshipConverter.cs
- Configuration.cs
- ModelPerspective.cs
- HashHelper.cs
- Utils.cs
- EditorPartChrome.cs
- OpenTypeLayoutCache.cs
- Vector3D.cs
- MemoryMappedViewStream.cs
- Menu.cs
- DataGridTextBoxColumn.cs
- ClosableStream.cs
- ObjectAnimationBase.cs
- NonBatchDirectoryCompiler.cs
- PiiTraceSource.cs
- SafeCoTaskMem.cs
- FrameworkRichTextComposition.cs
- ClientSession.cs
- TdsParserSessionPool.cs
- DependencyPropertyConverter.cs
- TraceShell.cs
- NonVisualControlAttribute.cs
- RoleGroupCollectionEditor.cs
- AppDomainProtocolHandler.cs
- UniformGrid.cs