Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / MS / Internal / LoadedOrUnloadedOperation.cs / 1 / 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
- RenderDataDrawingContext.cs
- TypeElement.cs
- _Semaphore.cs
- CheckBox.cs
- StringConverter.cs
- MetaTableHelper.cs
- SystemColors.cs
- ProviderCollection.cs
- Point3DAnimationBase.cs
- XsltSettings.cs
- CroppedBitmap.cs
- MimeTypeAttribute.cs
- CorePropertiesFilter.cs
- HtmlInputPassword.cs
- ColorAnimationUsingKeyFrames.cs
- WindowManager.cs
- MimeBasePart.cs
- _SingleItemRequestCache.cs
- ProxyGenerator.cs
- BooleanStorage.cs
- ManipulationVelocities.cs
- ChangeDirector.cs
- basevalidator.cs
- DataGridViewCellMouseEventArgs.cs
- ThicknessConverter.cs
- ScrollBar.cs
- ObjectComplexPropertyMapping.cs
- LocalTransaction.cs
- QEncodedStream.cs
- Delay.cs
- ButtonStandardAdapter.cs
- EntityDataSourceQueryBuilder.cs
- COMException.cs
- LoadItemsEventArgs.cs
- SingleAnimationBase.cs
- ClassicBorderDecorator.cs
- WebDescriptionAttribute.cs
- objectresult_tresulttype.cs
- XmlStreamStore.cs
- RegularExpressionValidator.cs
- PropertyValueUIItem.cs
- Error.cs
- PointValueSerializer.cs
- ConfigXmlComment.cs
- XpsFixedDocumentReaderWriter.cs
- DoubleLink.cs
- HideDisabledControlAdapter.cs
- WebServiceData.cs
- ListItem.cs
- SessionParameter.cs
- HandleCollector.cs
- PermissionSetEnumerator.cs
- FormViewPagerRow.cs
- CodeArgumentReferenceExpression.cs
- NavigationExpr.cs
- RoleGroup.cs
- CmsUtils.cs
- PrintPageEvent.cs
- WebPartsPersonalizationAuthorization.cs
- ToolStripSystemRenderer.cs
- BitHelper.cs
- OracleException.cs
- ChtmlMobileTextWriter.cs
- LinkArea.cs
- VerticalAlignConverter.cs
- Dispatcher.cs
- JournalNavigationScope.cs
- NavigationEventArgs.cs
- UserControlParser.cs
- CompiledQueryCacheEntry.cs
- StaticDataManager.cs
- PrivacyNoticeBindingElement.cs
- VideoDrawing.cs
- DataGridCellsPresenter.cs
- FormsAuthenticationUser.cs
- StateManagedCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- XmlSchemaObject.cs
- EventLogger.cs
- PrivilegedConfigurationManager.cs
- DecoderNLS.cs
- HttpResponseHeader.cs
- PassportAuthenticationEventArgs.cs
- TextBox.cs
- WebPartDescriptionCollection.cs
- Configuration.cs
- Models.cs
- DataGridViewAccessibleObject.cs
- ServiceAuthorizationElement.cs
- ObjectToModelValueConverter.cs
- AssemblyCollection.cs
- DictionarySurrogate.cs
- MatrixConverter.cs
- RenderingBiasValidation.cs
- TextContainer.cs
- StringCollectionMarkupSerializer.cs
- XmlNode.cs
- StackOverflowException.cs
- CodeDirectoryCompiler.cs
- BStrWrapper.cs