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
- NameSpaceExtractor.cs
- DocumentXPathNavigator.cs
- CmsInterop.cs
- SqlDataSource.cs
- ParallelTimeline.cs
- DrawingImage.cs
- SettingsSavedEventArgs.cs
- Models.cs
- SponsorHelper.cs
- DesignerListAdapter.cs
- FlagsAttribute.cs
- GiveFeedbackEvent.cs
- IERequestCache.cs
- Pens.cs
- TitleStyle.cs
- StaticFileHandler.cs
- ProviderConnectionPoint.cs
- DateTimeOffsetStorage.cs
- CommandManager.cs
- ChannelSinkStacks.cs
- CompilerInfo.cs
- MenuBase.cs
- UInt16Storage.cs
- DecoderNLS.cs
- ActivationArguments.cs
- InkCollectionBehavior.cs
- SqlFlattener.cs
- PropertyIdentifier.cs
- TextMarkerSource.cs
- XmlNavigatorFilter.cs
- RefreshEventArgs.cs
- PanningMessageFilter.cs
- OdbcInfoMessageEvent.cs
- HttpCapabilitiesEvaluator.cs
- XsdDataContractExporter.cs
- SynchronizedInputAdaptor.cs
- PropertyKey.cs
- HttpClientCertificate.cs
- ApplicationActivator.cs
- TextBoxDesigner.cs
- LinkedResource.cs
- ExtendedPropertyCollection.cs
- Label.cs
- DataGridViewHeaderCell.cs
- EventProxy.cs
- NamespaceTable.cs
- StreamResourceInfo.cs
- ObjectDataSourceEventArgs.cs
- ObjectDataProvider.cs
- ValidatingReaderNodeData.cs
- NumericUpDownAccelerationCollection.cs
- ClrPerspective.cs
- MimeMapping.cs
- ServicePointManager.cs
- Validator.cs
- ConfigXmlElement.cs
- DupHandleConnectionReader.cs
- GridSplitterAutomationPeer.cs
- DataBoundControlHelper.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DrawingContextDrawingContextWalker.cs
- WindowsGraphics.cs
- ListViewItemMouseHoverEvent.cs
- NumberFormatInfo.cs
- TwoPhaseCommit.cs
- _LazyAsyncResult.cs
- IdentityModelDictionary.cs
- ToolStripControlHost.cs
- TextOptionsInternal.cs
- UiaCoreTypesApi.cs
- MessageBox.cs
- HttpCapabilitiesSectionHandler.cs
- UnionCqlBlock.cs
- Message.cs
- DbConnectionPoolOptions.cs
- COM2PropertyDescriptor.cs
- ComponentEvent.cs
- ChangeInterceptorAttribute.cs
- ByeOperation11AsyncResult.cs
- DragEventArgs.cs
- ConditionBrowserDialog.cs
- ToolStripHighContrastRenderer.cs
- DiffuseMaterial.cs
- WSDualHttpSecurityMode.cs
- DataTemplateKey.cs
- DataGridViewCellConverter.cs
- XmlDeclaration.cs
- LinkedResource.cs
- KnownColorTable.cs
- FrameworkElement.cs
- XmlElementAttribute.cs
- MgmtConfigurationRecord.cs
- CaseStatement.cs
- DefaultEventAttribute.cs
- CollectionChangeEventArgs.cs
- ContentIterators.cs
- OptimizedTemplateContentHelper.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ModifiableIteratorCollection.cs
- DriveInfo.cs