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
- ServiceModelStringsVersion1.cs
- Brushes.cs
- TextParagraphCache.cs
- OutputChannelBinder.cs
- ProviderCollection.cs
- TextTreeFixupNode.cs
- Viewport3DVisual.cs
- MsmqTransportSecurity.cs
- TextRunCache.cs
- WebPartMenuStyle.cs
- ClientBuildManager.cs
- DatePickerAutomationPeer.cs
- AssociationSetMetadata.cs
- HyperlinkAutomationPeer.cs
- ObservableCollection.cs
- Fonts.cs
- HttpStreamMessage.cs
- CFGGrammar.cs
- WindowPatternIdentifiers.cs
- RemotingServices.cs
- EventDescriptor.cs
- ClientTarget.cs
- IndicFontClient.cs
- VisualStyleRenderer.cs
- DynamicILGenerator.cs
- PieceDirectory.cs
- SoapSchemaExporter.cs
- View.cs
- ArraySegment.cs
- DummyDataSource.cs
- ObjectDataSourceDisposingEventArgs.cs
- FragmentQueryKB.cs
- SafeLocalAllocation.cs
- ComponentEditorPage.cs
- UriParserTemplates.cs
- SafeRightsManagementEnvironmentHandle.cs
- panel.cs
- HttpRuntime.cs
- PointF.cs
- MessageAction.cs
- PixelShader.cs
- XamlSerializerUtil.cs
- WebSysDisplayNameAttribute.cs
- StringDictionary.cs
- DefaultAutoFieldGenerator.cs
- DocumentReferenceCollection.cs
- AttributeProviderAttribute.cs
- XmlQueryTypeFactory.cs
- DbCommandTree.cs
- PageThemeBuildProvider.cs
- ClientBuildManager.cs
- CodeVariableDeclarationStatement.cs
- EmbeddedMailObject.cs
- Constraint.cs
- ServicePerformanceCounters.cs
- VariableExpressionConverter.cs
- DataGridViewColumnTypePicker.cs
- SelectionChangedEventArgs.cs
- TagNameToTypeMapper.cs
- ProfileEventArgs.cs
- QueueException.cs
- SelectionPattern.cs
- LayoutEngine.cs
- WindowsAltTab.cs
- CommandHelpers.cs
- CompilerHelpers.cs
- DataGridSortCommandEventArgs.cs
- AnchorEditor.cs
- SecurityElement.cs
- COM2PropertyPageUITypeConverter.cs
- CrossSiteScriptingValidation.cs
- UpdatePanelTriggerCollection.cs
- DecoderFallbackWithFailureFlag.cs
- CodeTypeReferenceExpression.cs
- SvcMapFile.cs
- DBDataPermission.cs
- SpecialNameAttribute.cs
- DateBoldEvent.cs
- FileDialog.cs
- SettingsSavedEventArgs.cs
- CallbackWrapper.cs
- BindingCompleteEventArgs.cs
- PrimaryKeyTypeConverter.cs
- TextSegment.cs
- StylusButton.cs
- CustomLineCap.cs
- DataObjectPastingEventArgs.cs
- InternalConfigRoot.cs
- FunctionDescription.cs
- TypedLocationWrapper.cs
- TextTreePropertyUndoUnit.cs
- Mutex.cs
- EnumerableRowCollectionExtensions.cs
- odbcmetadatacollectionnames.cs
- TextPatternIdentifiers.cs
- RelatedImageListAttribute.cs
- DBConnection.cs
- TextEditorCharacters.cs
- PopupRoot.cs
- SqlConnectionFactory.cs