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
- SaveFileDialog.cs
- PassportAuthenticationModule.cs
- ObfuscateAssemblyAttribute.cs
- WindowsToolbar.cs
- EditableLabelControl.cs
- ComplexBindingPropertiesAttribute.cs
- MouseDevice.cs
- ThicknessAnimation.cs
- XmlWriterTraceListener.cs
- XmlException.cs
- ListBoxItemAutomationPeer.cs
- ContractsBCL.cs
- GridViewCancelEditEventArgs.cs
- OdbcPermission.cs
- SqlErrorCollection.cs
- SiteMapDataSource.cs
- ChangeConflicts.cs
- DesignTimeTemplateParser.cs
- ImageKeyConverter.cs
- EventProxy.cs
- Slider.cs
- HwndHostAutomationPeer.cs
- WebPartManagerDesigner.cs
- TypePresenter.xaml.cs
- ObjectViewEntityCollectionData.cs
- wpf-etw.cs
- Clock.cs
- HwndProxyElementProvider.cs
- DoubleCollection.cs
- DispatcherBuilder.cs
- ZoomPercentageConverter.cs
- ToolStripContainerDesigner.cs
- WmlListAdapter.cs
- OpenTypeLayout.cs
- ThreadStaticAttribute.cs
- Vector3DAnimation.cs
- OrderedHashRepartitionStream.cs
- WindowPattern.cs
- BaseValidator.cs
- NativeMethods.cs
- CorrelationManager.cs
- FormsAuthenticationModule.cs
- HttpCacheVary.cs
- CapiSymmetricAlgorithm.cs
- SymmetricKey.cs
- StaticSiteMapProvider.cs
- OleDbMetaDataFactory.cs
- FilteredReadOnlyMetadataCollection.cs
- StaticSiteMapProvider.cs
- TimeSpanStorage.cs
- SemanticKeyElement.cs
- ProcessingInstructionAction.cs
- FixedSOMPage.cs
- AlternateView.cs
- FixedPosition.cs
- _NativeSSPI.cs
- SelectorItemAutomationPeer.cs
- JsonFaultDetail.cs
- TraceUtils.cs
- InfoCardCryptoHelper.cs
- SqlCommandBuilder.cs
- FormatStringEditor.cs
- WindowsBrush.cs
- List.cs
- UnionCodeGroup.cs
- ConsoleKeyInfo.cs
- NameValueCollection.cs
- ProcessProtocolHandler.cs
- wgx_commands.cs
- ICollection.cs
- Int32RectConverter.cs
- ToolStripSeparator.cs
- PropertyGridEditorPart.cs
- RawStylusInputCustomDataList.cs
- AtomEntry.cs
- UInt32.cs
- VerticalAlignConverter.cs
- UInt16Converter.cs
- Activation.cs
- SQLCharsStorage.cs
- RegistrySecurity.cs
- HttpRequestCacheValidator.cs
- SemanticBasicElement.cs
- DbMetaDataColumnNames.cs
- SqlFacetAttribute.cs
- TableMethodGenerator.cs
- _PooledStream.cs
- BitmapMetadataEnumerator.cs
- HierarchicalDataSourceControl.cs
- IISMapPath.cs
- SmtpReplyReaderFactory.cs
- Attributes.cs
- SoapSchemaImporter.cs
- HttpApplication.cs
- StyleModeStack.cs
- DeviceContexts.cs
- PasswordTextNavigator.cs
- SystemThemeKey.cs
- XmlNavigatorStack.cs
- RemotingService.cs