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
- CustomValidator.cs
- DetailsViewInsertedEventArgs.cs
- CommandPlan.cs
- TextDecorations.cs
- ComplexTypeEmitter.cs
- PropertyInfo.cs
- SessionPageStatePersister.cs
- AssertSection.cs
- DataTableMapping.cs
- WebFaultClientMessageInspector.cs
- AsymmetricKeyExchangeDeformatter.cs
- EncoderParameters.cs
- HierarchicalDataSourceConverter.cs
- EntityUtil.cs
- ConnectionManagementElement.cs
- ContainerControl.cs
- SemanticBasicElement.cs
- InternalDispatchObject.cs
- StringReader.cs
- HtmlControlPersistable.cs
- XPathItem.cs
- LinkArea.cs
- CodeAttributeDeclaration.cs
- PKCS1MaskGenerationMethod.cs
- ReadOnlyDictionary.cs
- AssociatedControlConverter.cs
- WCFServiceClientProxyGenerator.cs
- PTManager.cs
- Gdiplus.cs
- SplineKeyFrames.cs
- SafeSecurityHandles.cs
- OdbcReferenceCollection.cs
- CompositeControl.cs
- ICspAsymmetricAlgorithm.cs
- ColumnHeader.cs
- ItemCollection.cs
- ClientBuildManager.cs
- LayoutInformation.cs
- DragDeltaEventArgs.cs
- Message.cs
- SmiEventSink.cs
- QueryableDataSource.cs
- BrowsableAttribute.cs
- ConfigurationSectionHelper.cs
- DataGridViewImageCell.cs
- TextTrailingWordEllipsis.cs
- SchemaElementDecl.cs
- PrintDialog.cs
- TemplateColumn.cs
- TdsParserStaticMethods.cs
- EntityUtil.cs
- TextSelectionHighlightLayer.cs
- ProfileSettingsCollection.cs
- ManagementQuery.cs
- PersistenceTypeAttribute.cs
- AccessedThroughPropertyAttribute.cs
- FrameworkRichTextComposition.cs
- PeerPresenceInfo.cs
- _FtpDataStream.cs
- ColumnTypeConverter.cs
- WebPartConnectionCollection.cs
- ProtectedConfigurationSection.cs
- MultipleViewPattern.cs
- ConstraintManager.cs
- NativeWrapper.cs
- LiteralControl.cs
- ListenerElementsCollection.cs
- Viewport3DVisual.cs
- mediaeventshelper.cs
- Point.cs
- Stroke2.cs
- UpdatePanel.cs
- StructuredType.cs
- DbParameterCollection.cs
- DateTimeParse.cs
- DataBindEngine.cs
- FileClassifier.cs
- AccessDataSourceWizardForm.cs
- NegotiateStream.cs
- ValidatedControlConverter.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- XmlStringTable.cs
- MonthChangedEventArgs.cs
- TransactionInformation.cs
- MD5.cs
- DbException.cs
- CodeDirectionExpression.cs
- UnsafeNativeMethodsCLR.cs
- PointCollection.cs
- Subtree.cs
- HttpProcessUtility.cs
- SrgsSubset.cs
- FusionWrap.cs
- SequenceFullException.cs
- DateTimeOffsetStorage.cs
- SpeechRecognitionEngine.cs
- SharedStatics.cs
- HWStack.cs
- PeerReferralPolicy.cs
- PathNode.cs