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
- HtmlInputButton.cs
- Inflater.cs
- DesignerFrame.cs
- WaveHeader.cs
- TableLayoutCellPaintEventArgs.cs
- ValidationErrorCollection.cs
- GifBitmapDecoder.cs
- XPathChildIterator.cs
- DataView.cs
- BufferedWebEventProvider.cs
- BeginEvent.cs
- Timer.cs
- AttributeXamlType.cs
- WebAdminConfigurationHelper.cs
- DataServiceBehavior.cs
- DataGridViewImageCell.cs
- MetadataArtifactLoaderCompositeFile.cs
- SessionStateModule.cs
- TransactionFlowOption.cs
- EventOpcode.cs
- PrinterUnitConvert.cs
- InfoCardTraceRecord.cs
- CodeExporter.cs
- ExpandedProjectionNode.cs
- UInt32.cs
- FirstMatchCodeGroup.cs
- ImageIndexConverter.cs
- ToolStripGripRenderEventArgs.cs
- ReadOnlyDataSource.cs
- LongSumAggregationOperator.cs
- HMACSHA512.cs
- QuadraticBezierSegment.cs
- DbModificationClause.cs
- XmlWriter.cs
- COM2IPerPropertyBrowsingHandler.cs
- TypeDescriptionProvider.cs
- XmlSerializerNamespaces.cs
- ToolStripItem.cs
- SerializerWriterEventHandlers.cs
- ConnectionStringsExpressionBuilder.cs
- HttpException.cs
- StreamWithDictionary.cs
- PropertyEntry.cs
- ResXBuildProvider.cs
- TemplateKeyConverter.cs
- DiscoveryExceptionDictionary.cs
- XmlSchemaSimpleType.cs
- OleDbRowUpdatedEvent.cs
- FormViewUpdateEventArgs.cs
- ReflectionPermission.cs
- CompiledRegexRunnerFactory.cs
- WebPartDisplayModeEventArgs.cs
- SupportsEventValidationAttribute.cs
- CheckBoxFlatAdapter.cs
- CodeNamespaceImportCollection.cs
- LowerCaseStringConverter.cs
- PackageStore.cs
- XmlILConstructAnalyzer.cs
- PointUtil.cs
- TextChangedEventArgs.cs
- AccessViolationException.cs
- xml.cs
- CmsInterop.cs
- CqlLexer.cs
- Style.cs
- MatrixAnimationBase.cs
- PersistenceTypeAttribute.cs
- RoleManagerEventArgs.cs
- OpCellTreeNode.cs
- ConfigXmlCDataSection.cs
- Matrix3DStack.cs
- SelectorItemAutomationPeer.cs
- UserValidatedEventArgs.cs
- PartialClassGenerationTaskInternal.cs
- ElementProxy.cs
- WindowsFormsDesignerOptionService.cs
- DatagramAdapter.cs
- ReadOnlyAttribute.cs
- XmlILIndex.cs
- TrustManager.cs
- DelegateBodyWriter.cs
- EventPropertyMap.cs
- FactoryMaker.cs
- Soap.cs
- ReceiveCompletedEventArgs.cs
- IApplicationTrustManager.cs
- ProtocolsConfigurationHandler.cs
- RegistryConfigurationProvider.cs
- InputReport.cs
- IDispatchConstantAttribute.cs
- LostFocusEventManager.cs
- DataBinding.cs
- MatchingStyle.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- InstanceDescriptor.cs
- ControlCollection.cs
- SettingsProperty.cs
- Soap12ProtocolImporter.cs
- NoClickablePointException.cs
- ListControl.cs