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
- HistoryEventArgs.cs
- DataControlCommands.cs
- Sql8ConformanceChecker.cs
- SoapCodeExporter.cs
- LZCodec.cs
- ExpressionPrefixAttribute.cs
- ACL.cs
- ParamArrayAttribute.cs
- GridEntryCollection.cs
- PixelFormats.cs
- Brushes.cs
- OperationParameterInfo.cs
- ECDiffieHellmanCng.cs
- CodeIndexerExpression.cs
- SqlDataSourceView.cs
- TreeNodeEventArgs.cs
- SystemIPGlobalStatistics.cs
- FixedSOMElement.cs
- TemplateControlBuildProvider.cs
- Certificate.cs
- ContextMenuStripActionList.cs
- CommandValueSerializer.cs
- EUCJPEncoding.cs
- ParserContext.cs
- Win32.cs
- UnknownBitmapEncoder.cs
- KnownIds.cs
- safelinkcollection.cs
- WebPartHeaderCloseVerb.cs
- WorkingDirectoryEditor.cs
- InertiaExpansionBehavior.cs
- ForAllOperator.cs
- Trigger.cs
- ProfileService.cs
- AddressingVersion.cs
- RowUpdatedEventArgs.cs
- CurrentChangingEventManager.cs
- SpeechDetectedEventArgs.cs
- FolderLevelBuildProviderCollection.cs
- ExpressionLink.cs
- XhtmlBasicPhoneCallAdapter.cs
- EntitySqlQueryState.cs
- FaultContractAttribute.cs
- NativeMethodsOther.cs
- AppDomain.cs
- ProviderConnectionPointCollection.cs
- MetaModel.cs
- DockAndAnchorLayout.cs
- WinFormsSpinner.cs
- ListChangedEventArgs.cs
- KeyMatchBuilder.cs
- DataBinding.cs
- CodeAccessSecurityEngine.cs
- SecurityState.cs
- ConcurrentStack.cs
- SchemaType.cs
- CachingHintValidation.cs
- HandlerBase.cs
- ForeignKeyConstraint.cs
- Quaternion.cs
- ResXResourceSet.cs
- DiagnosticsConfigurationHandler.cs
- ReadOnlyCollectionBase.cs
- Nullable.cs
- BamlLocalizableResource.cs
- ToolStripItem.cs
- CompilerState.cs
- TextContainerChangedEventArgs.cs
- Int32.cs
- XPathDocumentBuilder.cs
- IPHostEntry.cs
- GridItemProviderWrapper.cs
- SizeValueSerializer.cs
- VirtualPathProvider.cs
- BitmapCodecInfo.cs
- BulletedListDesigner.cs
- EventPrivateKey.cs
- StaticFileHandler.cs
- TemplateInstanceAttribute.cs
- DispatcherProcessingDisabled.cs
- Clock.cs
- SiteMap.cs
- EdmPropertyAttribute.cs
- WindowsSlider.cs
- ToolBarButton.cs
- HierarchicalDataTemplate.cs
- WindowsStreamSecurityElement.cs
- DesignTimeParseData.cs
- ButtonField.cs
- MediaElement.cs
- PartialCachingAttribute.cs
- Closure.cs
- EventLogger.cs
- EditorServiceContext.cs
- HostingEnvironment.cs
- JavaScriptObjectDeserializer.cs
- CultureInfoConverter.cs
- ObjectNotFoundException.cs
- RSAProtectedConfigurationProvider.cs
- TextureBrush.cs